home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-01-24 | 234.0 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jan 24 08:32:55 1995, modified Tue Jan 24 15:37:41 1995, creator 'HLX2', type 'ONLN', 231379 bytes "IM�QuickTime Addenda" , at 0x38853 7973 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
66%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
33%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
50%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 49 4d d1 51 75 69 | 63 6b 54 69 6d 65 20 41 |..IM.Qui|ckTime A|
|00000010| 64 64 65 6e 64 61 00 00 | 00 00 00 00 00 00 00 00 |ddenda..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 03 87 d3 00 | 00 1f 25 ab 4a b2 07 ab |........|..%.J...|
|00000060| 4b 15 95 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a2 e6 00 00 |........|........|
|00000080| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00000090| 3a 20 51 75 69 63 6b 54 | 69 6d 65 20 41 64 64 65 |: QuickT|ime Adde|
|000000a0| 6e 64 75 6d 0d 51 75 69 | 63 6b 54 69 6d 65 09 0d |ndum.Qui|ckTime..|
|000000b0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 44 65 76 65 |Written |by:.Deve|
|000000c0| 6c 6f 70 65 72 20 54 65 | 63 68 6e 69 63 61 6c 20 |loper Te|chnical |
|000000d0| 53 75 70 70 6f 72 74 20 | 61 6e 64 20 51 75 69 63 |Support |and Quic|
|000000e0| 6b 54 69 6d 65 20 45 6e | 67 69 6e 65 65 72 69 6e |kTime En|gineerin|
|000000f0| 67 09 44 65 63 65 6d 62 | 65 72 20 31 39 39 34 0d |g.Decemb|er 1994.|
|00000100| 54 68 69 73 20 54 65 63 | 68 20 4e 6f 74 65 20 69 |This Tec|h Note i|
|00000110| 73 20 61 6e 20 61 64 64 | 65 6e 64 75 6d 20 74 6f |s an add|endum to|
|00000120| 20 74 68 65 20 49 6e 73 | 69 64 65 20 4d 61 63 69 | the Ins|ide Maci|
|00000130| 6e 74 6f 73 68 3a 20 51 | 75 69 63 6b 54 69 6d 65 |ntosh: Q|uickTime|
|00000140| 20 70 75 62 6c 69 63 61 | 74 69 6f 6e 2e 20 49 74 | publica|tion. It|
|00000150| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 20 74 65 | will co|ntain te|
|00000160| 63 68 6e 69 63 61 6c 20 | 64 65 74 61 69 6c 73 20 |chnical |details |
|00000170| 6f 66 20 51 75 69 63 6b | 54 69 6d 65 20 6d 69 73 |of Quick|Time mis|
|00000180| 73 69 6e 67 20 69 6e 20 | 74 68 65 20 64 6f 63 75 |sing in |the docu|
|00000190| 6d 65 6e 74 61 74 69 6f | 6e 2c 20 75 70 64 61 74 |mentatio|n, updat|
|000001a0| 65 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |ed infor|mation, |
|000001b0| 6b 6e 6f 77 6e 20 70 72 | 6f 62 6c 65 6d 73 2c 20 |known pr|oblems, |
|000001c0| 77 6f 72 6b 61 72 6f 75 | 6e 64 73 2c 20 62 75 67 |workarou|nds, bug|
|000001d0| 20 66 69 78 65 73 20 61 | 6e 64 20 73 69 6d 69 6c | fixes a|nd simil|
|000001e0| 61 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |ar infor|mation. |
|000001f0| 54 68 65 20 73 75 62 74 | 69 74 6c 65 73 20 61 72 |The subt|itles ar|
|00000200| 65 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 51 |e based |on the Q|
|00000210| 75 69 63 6b 54 69 6d 65 | 20 50 75 62 6c 69 63 61 |uickTime| Publica|
|00000220| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 61 64 |tion wit|h the ad|
|00000230| 64 69 74 69 6f 6e 20 6f | 66 20 6e 65 77 20 6f 6e |dition o|f new on|
|00000240| 65 73 20 72 65 6c 61 74 | 65 64 20 74 6f 20 61 64 |es relat|ed to ad|
|00000250| 64 69 74 69 6f 6e 61 6c | 20 69 6e 66 6f 72 6d 61 |ditional| informa|
|00000260| 74 69 6f 6e 20 6e 6f 74 | 20 70 72 65 73 65 6e 74 |tion not| present|
|00000270| 20 69 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | in the |document|
|00000280| 61 74 69 6f 6e 2e 20 0d | 57 65 20 61 73 73 75 6d |ation. .|We assum|
|00000290| 65 20 74 68 61 74 20 64 | 65 76 65 6c 6f 70 65 72 |e that d|eveloper|
|000002a0| 73 20 75 73 65 20 51 75 | 69 63 6b 54 69 6d 65 20 |s use Qu|ickTime |
|000002b0| 31 2e 36 2e 31 20 6f 72 | 20 51 75 69 63 6b 54 69 |1.6.1 or| QuickTi|
|000002c0| 6d 65 20 32 2e 30 2c 20 | 61 6e 79 20 6f 6c 64 65 |me 2.0, |any olde|
|000002d0| 72 20 76 65 72 73 69 6f | 6e 73 20 61 72 65 20 6e |r versio|ns are n|
|000002e0| 6f 20 6c 6f 6e 67 65 72 | 20 73 75 70 70 6f 72 74 |o longer| support|
|000002f0| 65 64 20 62 79 20 44 54 | 53 2e 0d 54 61 62 6c 65 |ed by DT|S..Table|
|00000300| 20 6f 66 20 43 6f 6e 74 | 65 6e 74 73 0d 43 48 41 | of Cont|ents.CHA|
|00000310| 50 54 45 52 20 32 20 2d | 20 4d 4f 56 49 45 20 54 |PTER 2 -| MOVIE T|
|00000320| 4f 4f 4c 42 4f 58 0d 09 | 46 75 6e 63 74 69 6f 6e |OOLBOX..|Function|
|00000330| 73 20 66 6f 72 20 47 65 | 74 74 69 6e 67 20 61 6e |s for Ge|tting an|
|00000340| 64 20 50 6c 61 79 69 6e | 67 20 4d 6f 76 69 65 73 |d Playin|g Movies|
|00000350| 0d 09 09 45 6e 74 65 72 | 4d 6f 76 69 65 73 20 55 |...Enter|Movies U|
|00000360| 73 65 20 61 6e 64 20 49 | 6d 70 6c 65 6d 65 6e 74 |se and I|mplement|
|00000370| 61 74 69 6f 6e 09 0d 09 | 09 51 75 69 63 6b 54 69 |ation...|.QuickTi|
|00000380| 6d 65 20 4d 6f 76 69 65 | 20 54 6f 6f 6c 62 6f 78 |me Movie| Toolbox|
|00000390| 20 47 6c 6f 62 61 6c 73 | 20 61 72 65 20 53 74 6f | Globals| are Sto|
|000003a0| 72 65 64 20 69 6e 20 53 | 79 73 74 65 6d 20 48 65 |red in S|ystem He|
|000003b0| 61 70 0d 09 09 44 69 66 | 66 65 72 65 6e 74 20 41 |ap...Dif|ferent A|
|000003c0| 35 20 57 6f 72 6c 64 73 | 20 77 69 74 68 20 51 75 |5 Worlds| with Qu|
|000003d0| 69 63 6b 54 69 6d 65 3f | 0d 09 09 48 6f 77 20 74 |ickTime?|...How t|
|000003e0| 6f 20 47 65 74 20 4d 6f | 76 69 65 20 46 72 61 6d |o Get Mo|vie Fram|
|000003f0| 65 20 54 69 6d 65 20 50 | 61 72 61 6d 65 74 65 72 |e Time P|arameter|
|00000400| 20 66 6f 72 20 47 65 74 | 4d 6f 76 69 65 50 69 63 | for Get|MoviePic|
|00000410| 74 0d 09 09 50 75 74 4d | 6f 76 69 65 49 6e 74 6f |t...PutM|ovieInto|
|00000420| 48 61 6e 64 6c 65 20 61 | 6e 64 20 44 61 74 61 20 |Handle a|nd Data |
|00000430| 46 6f 72 6b 73 0d 09 09 | 45 6d 62 65 64 64 69 6e |Forks...|Embeddin|
|00000440| 67 20 4d 6f 76 69 65 73 | 20 28 4d 75 6c 74 69 70 |g Movies| (Multip|
|00000450| 6c 65 29 20 49 6e 74 6f | 20 61 20 4d 61 63 69 6e |le) Into| a Macin|
|00000460| 74 6f 73 68 20 46 69 6c | 65 0d 09 09 43 6c 69 70 |tosh Fil|e...Clip|
|00000470| 70 69 6e 67 20 51 75 69 | 63 6b 54 69 6d 65 20 4d |ping Qui|ckTime M|
|00000480| 6f 76 69 65 20 50 6f 73 | 74 65 72 73 0d 09 09 51 |ovie Pos|ters...Q|
|00000490| 75 69 63 6b 54 69 6d 65 | 20 46 69 6c 65 20 41 75 |uickTime| File Au|
|000004a0| 64 69 6f 20 52 65 74 72 | 69 65 76 61 6c 0d 09 09 |dio Retr|ieval...|
|000004b0| 68 69 6e 74 73 48 69 67 | 68 51 75 61 6c 69 74 79 |hintsHig|hQuality|
|000004c0| 20 46 6c 61 67 0d 09 09 | 51 75 69 63 6b 54 69 6d | Flag...|QuickTim|
|000004d0| 65 20 43 46 4d 20 50 6f | 77 65 72 50 6c 75 67 20 |e CFM Po|werPlug |
|000004e0| 4c 69 62 72 61 72 69 65 | 73 2c 20 41 76 61 69 6c |Librarie|s, Avail|
|000004f0| 61 62 69 6c 69 74 79 2c | 20 57 65 61 6b 20 4c 69 |ability,| Weak Li|
|00000500| 6e 6b 73 0d 09 09 50 72 | 65 72 6f 6c 6c 20 4d 6f |nks...Pr|eroll Mo|
|00000510| 76 69 65 73 0d 09 09 43 | 75 73 74 6f 6d 47 65 74 |vies...C|ustomGet|
|00000520| 46 69 6c 65 50 72 65 76 | 69 65 77 20 50 72 6f 62 |FilePrev|iew Prob|
|00000530| 6c 65 6d 20 2d 20 4d 69 | 73 73 69 6e 67 20 27 64 |lem - Mi|ssing 'd|
|00000540| 63 74 62 27 0d 09 0d 09 | 46 75 6e 63 74 69 6f 6e |ctb'....|Function|
|00000550| 73 20 74 68 61 74 20 4d | 6f 64 69 66 79 20 4d 6f |s that M|odify Mo|
|00000560| 76 69 65 20 50 72 6f 70 | 65 72 74 69 65 73 0d 09 |vie Prop|erties..|
|00000570| 09 51 75 69 63 6b 54 69 | 6d 65 20 54 72 61 63 6b |.QuickTi|me Track|
|00000580| 20 61 6e 64 20 4d 6f 76 | 69 65 20 53 6f 75 6e 64 | and Mov|ie Sound|
|00000590| 20 56 6f 6c 75 6d 65 0d | 09 09 48 6f 77 20 74 6f | Volume.|..How to|
|000005a0| 20 47 65 74 20 74 68 65 | 20 46 69 72 73 74 20 56 | Get the| First V|
|000005b0| 69 64 65 6f 20 46 72 61 | 6d 65 0d 09 09 4d 43 53 |ideo Fra|me...MCS|
|000005c0| 65 74 43 6c 69 70 20 61 | 6e 64 20 43 6c 69 70 70 |etClip a|nd Clipp|
|000005d0| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 4d 6f 76 |ing with| the Mov|
|000005e0| 69 65 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 0d 09 09 |ie Contr|oller...|
|000005f0| 44 65 74 65 72 6d 69 6e | 69 6e 67 20 51 75 69 63 |Determin|ing Quic|
|00000600| 6b 44 72 61 77 20 56 69 | 64 65 6f 20 4d 65 64 69 |kDraw Vi|deo Medi|
|00000610| 61 20 50 69 78 65 6c 20 | 44 65 70 74 68 0d 09 09 |a Pixel |Depth...|
|00000620| 53 65 74 4d 6f 76 69 65 | 44 72 61 77 69 6e 67 43 |SetMovie|DrawingC|
|00000630| 6f 6d 70 6c 65 74 65 50 | 72 6f 63 0d 09 09 53 65 |ompleteP|roc...Se|
|00000640| 74 54 72 61 63 6b 47 57 | 6f 72 6c 64 0d 09 09 47 |tTrackGW|orld...G|
|00000650| 65 74 4d 6f 76 69 65 43 | 6f 76 65 72 50 72 6f 63 |etMovieC|overProc|
|00000660| 73 0d 09 09 41 63 63 65 | 73 73 20 74 6f 20 44 65 |s...Acce|ss to De|
|00000670| 63 6f 6d 70 72 65 73 73 | 65 64 20 49 6d 61 67 65 |compress|ed Image|
|00000680| 73 20 64 75 72 69 6e 67 | 20 50 6c 61 79 62 61 63 |s during| Playbac|
|00000690| 6b 2c 20 47 57 6f 72 6c | 64 73 0d 09 09 53 70 65 |k, GWorl|ds...Spe|
|000006a0| 63 69 66 79 69 6e 67 20 | 57 68 65 72 65 20 61 20 |cifying |Where a |
|000006b0| 4d 6f 76 69 65 20 69 73 | 20 50 61 73 74 65 64 20 |Movie is| Pasted |
|000006c0| 55 73 69 6e 67 20 61 6e | 20 4f 66 66 73 65 74 2c |Using an| Offset,|
|000006d0| 20 47 65 74 54 72 61 63 | 6b 4d 61 74 72 69 78 2c | GetTrac|kMatrix,|
|000006e0| 20 0d 09 09 09 53 65 74 | 54 72 61 63 6b 4d 61 74 | ....Set|TrackMat|
|000006f0| 72 69 78 0d 09 09 46 75 | 6e 63 74 69 6f 6e 73 20 |rix...Fu|nctions |
|00000700| 66 6f 72 20 45 64 69 74 | 69 6e 67 20 4d 6f 76 69 |for Edit|ing Movi|
|00000710| 65 73 0d 09 09 73 68 6f | 77 55 73 65 72 53 65 74 |es...sho|wUserSet|
|00000720| 74 69 6e 67 73 44 69 61 | 6c 6f 67 20 46 6c 61 67 |tingsDia|log Flag|
|00000730| 0d 09 09 4e 65 77 4d 6f | 76 69 65 46 72 6f 6d 53 |...NewMo|vieFromS|
|00000740| 63 72 61 70 2c 20 41 64 | 64 69 6e 67 20 74 68 65 |crap, Ad|ding the|
|00000750| 20 4d 65 64 69 61 20 4c | 61 74 65 72 0d 09 09 53 | Media L|ater...S|
|00000760| 6f 75 6e 64 20 43 6f 6d | 70 72 65 73 73 69 6f 6e |ound Com|pression|
|00000770| 2c 20 49 4d 41 20 34 3a | 31 0d 09 4d 65 64 69 61 |, IMA 4:|1..Media|
|00000780| 20 46 75 6e 63 74 69 6f | 6e 73 0d 09 42 61 73 65 | Functio|ns..Base|
|00000790| 20 4d 65 64 69 61 20 48 | 61 6e 64 6c 65 72 0d 09 | Media H|andler..|
|000007a0| 09 4e 65 77 20 45 78 74 | 65 6e 64 65 64 20 46 65 |.New Ext|ended Fe|
|000007b0| 61 74 75 72 65 73 20 69 | 6e 20 74 68 65 20 42 61 |atures i|n the Ba|
|000007c0| 73 65 20 4d 65 64 69 61 | 20 48 61 6e 64 6c 65 72 |se Media| Handler|
|000007d0| 0d 09 09 4d 65 64 69 61 | 47 65 74 4f 66 66 73 63 |...Media|GetOffsc|
|000007e0| 72 65 65 6e 42 75 66 66 | 65 72 53 69 7a 65 0d 09 |reenBuff|erSize..|
|000007f0| 09 4d 65 64 69 61 53 65 | 74 48 69 6e 74 73 0d 09 |.MediaSe|tHints..|
|00000800| 09 4d 65 64 69 61 47 65 | 74 4e 61 6d 65 0d 09 0d |.MediaGe|tName...|
|00000810| 09 54 65 78 74 20 4d 65 | 64 69 61 20 48 61 6e 64 |.Text Me|dia Hand|
|00000820| 6c 65 72 0d 09 09 4e 65 | 77 20 44 69 73 70 6c 61 |ler...Ne|w Displa|
|00000830| 79 20 46 6c 61 67 73 0d | 09 09 53 65 74 54 65 78 |y Flags.|..SetTex|
|00000840| 74 53 61 6d 70 6c 65 44 | 61 74 61 0d 09 0d 09 4d |tSampleD|ata....M|
|00000850| 61 74 72 69 78 20 46 75 | 6e 63 74 69 6f 6e 73 0d |atrix Fu|nctions.|
|00000860| 09 09 51 75 69 63 6b 54 | 69 6d 65 20 52 6f 74 61 |..QuickT|ime Rota|
|00000870| 74 69 6f 6e 20 61 6e 64 | 20 53 6b 65 77 20 61 72 |tion and| Skew ar|
|00000880| 65 6e d5 74 20 49 6d 70 | 6c 65 6d 65 6e 74 65 64 |en.t Imp|lemented|
|00000890| 0d 09 09 53 74 61 74 75 | 73 20 6f 66 20 52 6f 74 |...Statu|s of Rot|
|000008a0| 61 74 69 6e 67 20 4d 61 | 74 72 69 78 20 53 75 70 |ating Ma|trix Sup|
|000008b0| 70 6f 72 74 0d 43 48 41 | 50 54 45 52 20 33 2d 20 |port.CHA|PTER 3- |
|000008c0| 49 4d 41 47 45 20 43 4f | 4d 50 52 45 53 53 4f 52 |IMAGE CO|MPRESSOR|
|000008d0| 20 4d 41 4e 41 47 45 52 | 0d 09 49 6d 61 67 65 20 | MANAGER|..Image |
|000008e0| 43 6f 6d 70 72 65 73 73 | 69 6f 6e 20 4d 61 6e 61 |Compress|ion Mana|
|000008f0| 67 65 72 20 46 75 6e 63 | 74 69 6f 6e 73 0d 09 09 |ger Func|tions...|
|00000900| 43 72 65 61 74 69 6e 67 | 20 54 68 75 6d 62 6e 61 |Creating| Thumbna|
|00000910| 69 6c 20 50 49 43 54 73 | 0d 09 09 44 65 63 6f 6d |il PICTs|...Decom|
|00000920| 70 72 65 73 73 53 65 71 | 75 65 6e 63 65 42 65 67 |pressSeq|uenceBeg|
|00000930| 69 6e 53 09 0d 09 09 4e | 65 77 20 4d 6f 6e 69 74 |inS....N|ew Monit|
|00000940| 6f 72 20 52 65 6c 61 74 | 65 64 20 50 6c 61 79 62 |or Relat|ed Playb|
|00000950| 61 63 6b 20 43 61 6c 6c | 73 0d 09 09 47 44 48 61 |ack Call|s...GDHa|
|00000960| 73 53 63 61 6c 65 0d 09 | 09 47 44 47 65 74 53 63 |sScale..|.GDGetSc|
|00000970| 61 6c 65 0d 09 09 47 44 | 53 65 74 53 63 61 6c 65 |ale...GD|SetScale|
|00000980| 0d 09 09 48 6f 77 20 74 | 6f 20 54 65 6c 6c 20 57 |...How t|o Tell W|
|00000990| 68 65 74 68 65 72 20 61 | 20 50 69 63 74 75 72 65 |hether a| Picture|
|000009a0| 20 69 73 20 51 75 69 63 | 6b 54 69 6d 65 2d 43 6f | is Quic|kTime-Co|
|000009b0| 6d 70 72 65 73 73 65 64 | 0d 09 09 51 75 69 63 6b |mpressed|...Quick|
|000009c0| 54 69 6d 65 20 46 69 6c | 6c 73 20 69 6e 20 49 6d |Time Fil|ls in Im|
|000009d0| 61 67 65 20 44 65 73 63 | 72 69 70 74 6f 72 20 77 |age Desc|riptor w|
|000009e0| 68 65 6e 20 44 61 74 61 | 20 69 73 20 43 6f 6d 70 |hen Data| is Comp|
|000009f0| 72 65 73 73 65 64 0d 09 | 09 44 65 63 6f 6d 70 72 |ressed..|.Decompr|
|00000a00| 65 73 73 69 6e 67 20 74 | 6f 20 50 61 72 74 69 61 |essing t|o Partia|
|00000a10| 6c 20 77 69 6e 64 6f 77 | 2c 20 42 75 67 20 26 20 |l window|, Bug & |
|00000a20| 57 6f 72 6b 61 72 6f 75 | 6e 64 0d 09 09 50 72 6f |Workarou|nd...Pro|
|00000a30| 62 6c 65 6d 73 20 57 69 | 74 68 20 4d 61 74 72 69 |blems Wi|th Matri|
|00000a40| 78 65 73 20 61 6e 64 20 | 46 44 65 63 6f 6d 70 72 |xes and |FDecompr|
|00000a50| 65 73 73 49 6d 61 67 65 | 2c 20 63 6f 64 65 63 55 |essImage|, codecU|
|00000a60| 6e 69 6d 70 45 72 72 0d | 09 09 49 6d 61 67 65 44 |nimpErr.|..ImageD|
|00000a70| 65 73 63 72 69 70 74 69 | 6f 6e 48 61 6e 64 6c 65 |escripti|onHandle|
|00000a80| 73 2c 20 4a 50 45 47 20 | 46 69 6c 65 73 0d 09 09 |s, JPEG |Files...|
|00000a90| 50 49 43 54 2c 20 20 51 | 75 69 63 6b 54 69 6d 65 |PICT, Q|uickTime|
|00000aa0| 2d 43 6f 6d 70 72 65 73 | 73 65 64 20 54 65 73 74 |-Compres|sed Test|
|00000ab0| 69 6e 67 0d 09 09 4f 70 | 43 6f 64 65 20 53 6b 69 |ing...Op|Code Ski|
|00000ac0| 70 70 69 6e 67 20 57 69 | 74 68 20 53 69 7a 65 0d |pping Wi|th Size.|
|00000ad0| 09 09 41 70 70 6c 69 63 | 61 74 69 6f 6e 2d 44 65 |..Applic|ation-De|
|00000ae0| 66 69 6e 65 64 20 46 75 | 6e 63 74 69 6f 6e 73 0d |fined Fu|nctions.|
|00000af0| 09 09 53 65 74 53 65 71 | 75 65 6e 63 65 50 72 6f |..SetSeq|uencePro|
|00000b00| 67 72 65 73 73 50 72 6f | 63 0d 43 48 41 50 54 45 |gressPro|c.CHAPTE|
|00000b10| 52 20 34 20 2d 4d 4f 56 | 49 45 20 52 45 53 4f 55 |R 4 -MOV|IE RESOU|
|00000b20| 52 43 45 20 46 4f 52 4d | 41 54 53 0d 09 4c 4f 4f |RCE FORM|ATS..LOO|
|00000b30| 50 27 20 61 6e 64 20 55 | 73 65 72 20 44 61 74 61 |P' and U|ser Data|
|00000b40| 20 41 74 6f 6d 73 0d 09 | 09 47 65 74 74 69 6e 67 | Atoms..|.Getting|
|00000b50| 20 27 4c 4f 4f 50 27 2d | 79 0d 09 09 53 61 6d 70 | 'LOOP'-|y...Samp|
|00000b60| 6c 65 20 43 6f 64 65 0d | 09 09 49 6e 73 69 64 65 |le Code.|..Inside|
|00000b70| 20 74 68 65 20 55 73 65 | 72 20 44 61 74 61 20 41 | the Use|r Data A|
|00000b80| 74 6f 6d 0d 09 09 53 61 | 76 69 6e 67 20 61 20 4d |tom...Sa|ving a M|
|00000b90| 6f 76 69 65 d5 73 20 41 | 63 74 69 76 65 20 53 65 |ovie.s A|ctive Se|
|00000ba0| 6c 65 63 74 69 6f 6e 0d | 09 0d 09 51 75 69 63 6b |lection.|...Quick|
|00000bb0| 54 69 6d 65 20 20 44 65 | 70 65 6e 64 65 6e 74 20 |Time De|pendent |
|00000bc0| 46 69 6c 65 20 46 6f 72 | 6d 61 74 0d 09 09 49 6e |File For|mat...In|
|00000bd0| 74 72 6f 64 75 63 74 69 | 6f 6e 0d 09 09 44 65 70 |troducti|on...Dep|
|00000be0| 65 6e 64 65 6e 74 20 46 | 69 6c 65 20 4f 76 65 72 |endent F|ile Over|
|00000bf0| 76 69 65 77 0d 09 09 4e | 65 77 20 55 73 65 20 6f |view...N|ew Use o|
|00000c00| 66 20 53 68 61 72 65 64 | 20 42 69 74 0d 09 09 44 |f Shared| Bit...D|
|00000c10| 65 70 65 6e 64 65 6e 74 | 20 41 6c 69 61 73 20 46 |ependent| Alias F|
|00000c20| 6f 72 6d 61 74 0d 09 09 | 57 6f 72 6b 69 6e 67 20 |ormat...|Working |
|00000c30| 77 69 74 68 20 44 65 70 | 65 6e 64 65 6e 74 20 46 |with Dep|endent F|
|00000c40| 69 6c 65 73 0d 09 09 44 | 65 6c 65 74 69 6e 67 20 |iles...D|eleting |
|00000c50| 44 65 70 65 6e 64 65 6e | 74 20 46 69 6c 65 73 0d |Dependen|t Files.|
|00000c60| 09 09 52 65 6d 6f 76 69 | 6e 67 20 44 65 70 65 6e |..Removi|ng Depen|
|00000c70| 64 65 6e 74 20 41 6c 69 | 61 73 65 73 0d 09 09 43 |dent Ali|ases...C|
|00000c80| 6f 70 79 69 6e 67 20 44 | 65 70 65 6e 64 65 6e 74 |opying D|ependent|
|00000c90| 20 46 69 6c 65 73 0d 09 | 09 43 72 65 61 74 69 6e | Files..|.Creatin|
|00000ca0| 67 20 44 65 70 65 6e 64 | 65 6e 74 20 46 69 6c 65 |g Depend|ent File|
|00000cb0| 73 0d 09 09 48 6f 77 20 | 41 62 6f 75 74 20 74 68 |s...How |About th|
|00000cc0| 65 20 46 69 6e 64 65 72 | 3f 0d 09 09 4f 72 70 68 |e Finder|?...Orph|
|00000cd0| 61 6e 65 64 20 44 65 70 | 65 6e 64 65 6e 74 20 46 |aned Dep|endent F|
|00000ce0| 69 6c 65 73 0d 09 09 43 | 72 6f 73 73 2d 50 6c 61 |iles...C|ross-Pla|
|00000cf0| 74 66 6f 72 6d 20 4d 6f | 76 69 65 20 46 69 6c 65 |tform Mo|vie File|
|00000d00| 73 0d 0d 43 48 41 50 54 | 45 52 20 32 20 2d 20 4d |s..CHAPT|ER 2 - M|
|00000d10| 4f 56 49 45 20 54 4f 4f | 4c 42 4f 58 0d 46 75 6e |OVIE TOO|LBOX.Fun|
|00000d20| 63 74 69 6f 6e 73 20 66 | 6f 72 20 47 65 74 74 69 |ctions f|or Getti|
|00000d30| 6e 67 20 61 6e 64 20 50 | 6c 61 79 69 6e 67 20 4d |ng and P|laying M|
|00000d40| 6f 76 69 65 73 0d 45 6e | 74 65 72 4d 6f 76 69 65 |ovies.En|terMovie|
|00000d50| 73 20 55 73 65 20 61 6e | 64 20 49 6d 70 6c 65 6d |s Use an|d Implem|
|00000d60| 65 6e 74 61 74 69 6f 6e | 0d 51 3a 20 54 68 65 20 |entation|.Q: The |
|00000d70| 51 75 69 63 6b 54 69 6d | 65 20 31 2e 30 20 64 6f |QuickTim|e 1.0 do|
|00000d80| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 73 61 79 73 |cumentat|ion says|
|00000d90| 20 49 20 63 61 6e 20 45 | 6e 74 65 72 4d 6f 76 69 | I can E|nterMovi|
|00000da0| 65 73 20 6d 75 6c 74 69 | 70 6c 65 20 74 69 6d 65 |es multi|ple time|
|00000db0| 73 2c 20 61 73 20 6c 6f | 6e 67 20 61 73 20 49 20 |s, as lo|ng as I |
|00000dc0| 62 61 6c 61 6e 63 65 20 | 65 61 63 68 20 45 6e 74 |balance |each Ent|
|00000dd0| 65 72 4d 6f 76 69 65 73 | 20 77 69 74 68 20 45 78 |erMovies| with Ex|
|00000de0| 69 74 4d 6f 76 69 65 73 | 2e 20 42 75 74 20 74 68 |itMovies|. But th|
|00000df0| 65 20 61 72 74 69 63 6c | 65 20 69 6e 20 69 73 73 |e articl|e in iss|
|00000e00| 75 65 20 31 33 20 6f 66 | 20 64 65 76 65 6c 6f 70 |ue 13 of| develop|
|00000e10| 20 73 61 79 73 2c 20 d2 | 44 6f 6e d5 74 20 63 61 | says, .|Don.t ca|
|00000e20| 6c 6c 20 45 78 69 74 4d | 6f 76 69 65 73 2e 20 45 |ll ExitM|ovies. E|
|00000e30| 78 69 74 54 6f 53 68 65 | 6c 6c 20 64 6f 65 73 20 |xitToShe|ll does |
|00000e40| 74 68 69 73 20 66 6f 72 | 20 6d 65 2e d3 20 53 6f |this for| me.. So|
|00000e50| 20 6e 6f 77 20 74 68 65 | 20 6f 6e 6c 79 20 63 61 | now the| only ca|
|00000e60| 6c 6c 20 49 20 68 61 76 | 65 20 74 6f 20 75 73 65 |ll I hav|e to use|
|00000e70| 20 69 73 20 45 6e 74 65 | 72 4d 6f 76 69 65 73 2e | is Ente|rMovies.|
|00000e80| 20 42 75 74 20 74 68 69 | 73 20 73 65 65 6d 73 20 | But thi|s seems |
|00000e90| 74 6f 20 64 65 73 74 72 | 6f 79 20 74 68 65 20 62 |to destr|oy the b|
|00000ea0| 61 6c 61 6e 63 65 20 6f | 66 20 74 68 65 73 65 20 |alance o|f these |
|00000eb0| 72 6f 75 74 69 6e 65 73 | 2e 20 57 68 61 74 20 73 |routines|. What s|
|00000ec0| 68 6f 75 6c 64 20 49 20 | 64 6f 3f 0d 5f 5f 5f 0d |hould I |do?.___.|
|00000ed0| 41 3a 20 54 68 65 20 77 | 61 79 20 45 6e 74 65 72 |A: The w|ay Enter|
|00000ee0| 4d 6f 76 69 65 73 20 77 | 6f 72 6b 73 20 69 73 20 |Movies w|orks is |
|00000ef0| 74 68 61 74 20 69 74 20 | 63 72 65 61 74 65 73 20 |that it |creates |
|00000f00| 61 20 6e 65 77 20 51 75 | 69 63 6b 54 69 6d 65 20 |a new Qu|ickTime |
|00000f10| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 69 66 20 74 |environm|ent if t|
|00000f20| 68 65 20 63 75 72 72 65 | 6e 74 20 61 35 20 77 6f |he curre|nt a5 wo|
|00000f30| 72 6c 64 20 64 6f 65 73 | 6e d5 74 20 68 61 76 65 |rld does|n.t have|
|00000f40| 20 6f 6e 65 20 61 6c 72 | 65 61 64 79 2e 20 49 66 | one alr|eady. If|
|00000f50| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 61 35 20 | the cur|rent a5 |
|00000f60| 77 6f 72 6c 64 20 61 6c | 72 65 61 64 79 20 68 61 |world al|ready ha|
|00000f70| 73 20 6f 6e 65 20 66 72 | 6f 6d 20 61 20 70 72 65 |s one fr|om a pre|
|00000f80| 76 69 6f 75 73 20 45 6e | 74 65 72 4d 6f 76 69 65 |vious En|terMovie|
|00000f90| 73 20 63 61 6c 6c 2c 20 | 74 68 65 6e 20 6e 6f 74 |s call, |then not|
|00000fa0| 68 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 65 78 63 |hing is |done exc|
|00000fb0| 65 70 74 20 74 68 61 74 | 20 61 20 63 6f 75 6e 74 |ept that| a count|
|00000fc0| 65 72 20 69 73 20 69 6e | 63 72 65 6d 65 6e 74 65 |er is in|cremente|
|00000fd0| 64 20 74 6f 20 6b 65 65 | 70 20 74 72 61 63 6b 20 |d to kee|p track |
|00000fe0| 6f 66 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |of the n|umber of|
|00000ff0| 20 74 69 6d 65 73 20 45 | 6e 74 65 72 4d 6f 76 69 | times E|nterMovi|
|00001000| 65 73 20 68 61 73 20 62 | 65 65 6e 20 63 61 6c 6c |es has b|een call|
|00001010| 65 64 2e 20 54 68 65 20 | 6f 72 69 67 69 6e 61 6c |ed. The |original|
|00001020| 20 72 65 61 73 6f 6e 20 | 66 6f 72 20 74 68 69 73 | reason |for this|
|00001030| 20 77 61 73 20 74 6f 20 | 61 63 63 6f 75 6e 74 20 | was to |account |
|00001040| 66 6f 72 20 44 41 73 20 | 77 68 69 63 68 20 75 73 |for DAs |which us|
|00001050| 65 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |e an app|lication|
|00001060| d5 73 20 61 35 20 77 6f | 72 6c 64 2e 20 42 79 20 |.s a5 wo|rld. By |
|00001070| 64 6f 69 6e 67 20 74 68 | 69 73 2c 20 69 66 20 61 |doing th|is, if a|
|00001080| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 68 61 |n applic|ation ha|
|00001090| 73 20 63 61 6c 6c 65 64 | 20 45 6e 74 65 72 4d 6f |s called| EnterMo|
|000010a0| 76 69 65 73 20 61 6c 72 | 65 61 64 79 2c 20 74 68 |vies alr|eady, th|
|000010b0| 65 20 6d 6f 76 69 65 20 | 74 6f 6f 6c 62 6f 78 20 |e movie |toolbox |
|000010c0| 6b 6e 6f 77 73 20 74 68 | 61 74 20 69 74 20 64 6f |knows th|at it do|
|000010d0| 65 73 6e d5 74 20 68 61 | 76 65 20 74 6f 20 72 65 |esn.t ha|ve to re|
|000010e0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 77 68 65 6e 20 |initiali|ze when |
|000010f0| 74 68 65 20 44 41 20 63 | 61 6c 6c 73 20 45 6e 74 |the DA c|alls Ent|
|00001100| 65 72 4d 6f 76 69 65 73 | 2e 20 54 68 65 6e 2c 20 |erMovies|. Then, |
|00001110| 77 68 65 6e 20 74 68 65 | 20 44 41 20 63 61 6c 6c |when the| DA call|
|00001120| 73 20 45 78 69 74 4d 6f | 76 69 65 73 2c 20 69 74 |s ExitMo|vies, it|
|00001130| 20 64 65 63 72 65 6d 65 | 6e 74 73 20 74 68 65 20 | decreme|nts the |
|00001140| 63 6f 75 6e 74 65 72 20 | 61 6e 64 20 61 73 20 6c |counter |and as l|
|00001150| 6f 6e 67 20 61 73 20 61 | 6c 6c 20 45 6e 74 65 72 |ong as a|ll Enter|
|00001160| 4d 6f 76 69 65 73 20 61 | 6e 64 20 45 78 69 74 4d |Movies a|nd ExitM|
|00001170| 6f 76 69 65 73 20 63 61 | 6c 6c 73 20 61 72 65 20 |ovies ca|lls are |
|00001180| 62 61 6c 61 6e 63 65 64 | 2c 20 74 68 65 20 4d 6f |balanced|, the Mo|
|00001190| 76 69 65 20 54 6f 6f 6c | 62 6f 78 20 77 6f 6e d5 |vie Tool|box won.|
|000011a0| 74 20 64 69 73 70 6f 73 | 65 20 6f 66 20 74 68 65 |t dispos|e of the|
|000011b0| 20 51 75 69 63 6b 54 69 | 6d 65 20 77 6f 72 6c 64 | QuickTi|me world|
|000011c0| 20 75 6e 74 69 6c 20 74 | 68 65 20 6c 61 73 74 20 | until t|he last |
|000011d0| 45 78 69 74 4d 6f 76 69 | 65 73 20 63 61 6c 6c 20 |ExitMovi|es call |
|000011e0| 69 73 20 6d 61 64 65 2e | 0d 54 68 65 20 72 65 61 |is made.|.The rea|
|000011f0| 73 6f 6e 20 77 65 20 73 | 75 67 67 65 73 74 20 6e |son we s|uggest n|
|00001200| 6f 74 20 74 6f 20 63 61 | 6c 6c 20 45 78 69 74 4d |ot to ca|ll ExitM|
|00001210| 6f 76 69 65 73 20 69 73 | 20 74 68 61 74 20 45 78 |ovies is| that Ex|
|00001220| 69 74 54 6f 53 68 65 6c | 6c 20 77 69 6c 6c 20 61 |itToShel|l will a|
|00001230| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 63 61 6c |utomatic|ally cal|
|00001240| 6c 20 45 78 69 74 4d 6f | 76 69 65 73 20 66 6f 72 |l ExitMo|vies for|
|00001250| 20 79 6f 75 2e 20 42 79 | 20 64 6f 69 6e 67 20 73 | you. By| doing s|
|00001260| 6f 2c 20 79 6f 75 20 63 | 61 6e 20 61 76 6f 69 64 |o, you c|an avoid|
|00001270| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 70 72 6f | some of| the pro|
|00001280| 62 6c 65 6d 73 20 74 68 | 61 74 20 64 65 76 65 6c |blems th|at devel|
|00001290| 6f 70 65 72 73 20 68 61 | 76 65 20 68 61 64 20 77 |opers ha|ve had w|
|000012a0| 69 74 68 20 64 69 73 70 | 6f 73 69 6e 67 20 6f 66 |ith disp|osing of|
|000012b0| 20 6d 6f 76 69 65 20 73 | 74 72 75 63 74 75 72 65 | movie s|tructure|
|000012c0| 73 20 69 6d 70 72 6f 70 | 65 72 6c 79 20 61 6e 64 |s improp|erly and|
|000012d0| 20 69 6e 20 74 68 65 20 | 77 72 6f 6e 67 20 6f 72 | in the |wrong or|
|000012e0| 64 65 72 2e 20 4c 65 74 | 74 69 6e 67 20 45 78 69 |der. Let|ting Exi|
|000012f0| 74 54 6f 53 68 65 6c 6c | 20 64 6f 20 74 68 65 20 |tToShell| do the |
|00001300| 66 69 6e 61 6c 20 63 6c | 65 61 6e 75 70 20 61 76 |final cl|eanup av|
|00001310| 6f 69 64 20 74 68 65 73 | 65 20 70 72 6f 62 6c 65 |oid thes|e proble|
|00001320| 6d 73 20 62 65 63 61 75 | 73 65 20 74 68 65 20 65 |ms becau|se the e|
|00001330| 6e 74 69 72 65 20 61 35 | 20 77 6f 72 6c 64 20 61 |ntire a5| world a|
|00001340| 6e 64 20 68 65 61 70 20 | 69 73 20 64 69 73 70 6f |nd heap |is dispo|
|00001350| 73 65 64 20 6f 66 20 61 | 73 20 77 65 6c 6c 2e 0d |sed of a|s well..|
|00001360| 42 75 74 2c 20 69 66 20 | 79 6f 75 d5 76 65 20 6e |But, if |you.ve n|
|00001370| 65 73 74 65 64 20 45 6e | 74 65 72 4d 6f 76 69 65 |ested En|terMovie|
|00001380| 73 20 61 6e 64 20 45 78 | 69 74 4d 6f 76 69 65 73 |s and Ex|itMovies|
|00001390| 20 63 61 6c 6c 73 2c 20 | 74 68 69 73 20 69 73 20 | calls, |this is |
|000013a0| 77 68 61 74 20 77 65 20 | 72 65 63 6f 6d 6d 65 6e |what we |recommen|
|000013b0| 64 3a 0d 31 2e 09 49 66 | 20 79 6f 75 d5 72 65 20 |d:.1..If| you.re |
|000013c0| 77 72 69 74 69 6e 67 20 | 61 6e 20 61 70 70 6c 69 |writing |an appli|
|000013d0| 63 61 74 69 6f 6e 2c 20 | 63 61 6c 6c 20 45 6e 74 |cation, |call Ent|
|000013e0| 65 72 4d 6f 76 69 65 73 | 20 61 6e 64 20 64 6f 6e |erMovies| and don|
|000013f0| d5 74 20 63 61 6c 6c 20 | 45 78 69 74 4d 6f 76 69 |.t call |ExitMovi|
|00001400| 65 73 2e 20 54 68 69 73 | 20 77 61 79 2c 20 61 6e |es. This| way, an|
|00001410| 79 20 65 78 74 65 72 6e | 61 6c 20 74 68 61 74 20 |y extern|al that |
|00001420| 75 73 65 73 20 74 68 65 | 20 73 61 6d 65 20 61 35 |uses the| same a5|
|00001430| 20 77 6f 72 6c 64 20 61 | 6e 64 20 63 61 6c 6c 73 | world a|nd calls|
|00001440| 20 45 6e 74 65 72 4d 6f | 76 69 65 73 20 61 6e 64 | EnterMo|vies and|
|00001450| 20 45 78 69 74 4d 6f 76 | 69 65 73 20 77 69 6c 6c | ExitMov|ies will|
|00001460| 20 73 69 6d 70 6c 79 20 | 69 6e 63 72 65 6d 65 6e | simply |incremen|
|00001470| 74 20 61 20 63 6f 75 6e | 74 65 72 20 61 6e 64 20 |t a coun|ter and |
|00001480| 74 68 65 6e 20 64 65 63 | 72 65 6d 65 6e 74 20 74 |then dec|rement t|
|00001490| 68 65 20 63 6f 75 6e 74 | 65 72 20 61 6e 64 20 64 |he count|er and d|
|000014a0| 6f 20 6e 6f 74 68 69 6e | 67 20 65 6c 73 65 2e 0d |o nothin|g else..|
|000014b0| 32 2e 09 49 66 20 79 6f | 75 d5 72 65 20 77 72 69 |2..If yo|u.re wri|
|000014c0| 74 69 6e 67 20 61 6e 20 | 65 78 74 65 72 6e 61 6c |ting an |external|
|000014d0| 20 74 68 61 74 20 72 75 | 6e 73 20 75 6e 64 65 72 | that ru|ns under|
|000014e0| 20 73 6f 6d 65 6f 6e 65 | 20 65 6c 73 65 d5 73 20 | someone| else.s |
|000014f0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 79 6f 75 |applicat|ion, you|
|00001500| 20 68 61 76 65 20 74 77 | 6f 20 63 68 6f 69 63 65 | have tw|o choice|
|00001510| 73 3a 0d 69 2e 09 43 61 | 6c 6c 20 45 6e 74 65 72 |s:.i..Ca|ll Enter|
|00001520| 4d 6f 76 69 65 73 20 61 | 6e 64 20 6e 65 76 65 72 |Movies a|nd never|
|00001530| 20 63 61 6c 6c 20 45 78 | 69 74 4d 6f 76 69 65 73 | call Ex|itMovies|
|00001540| 2e 20 54 68 69 73 20 63 | 61 75 73 65 73 20 51 75 |. This c|auses Qu|
|00001550| 69 63 6b 54 69 6d 65 20 | 74 6f 20 69 6e 69 74 69 |ickTime |to initi|
|00001560| 61 6c 69 7a 65 20 6f 6e | 63 65 20 64 75 72 69 6e |alize on|ce durin|
|00001570| 67 20 74 68 65 20 66 69 | 72 73 74 20 63 61 6c 6c |g the fi|rst call|
|00001580| 20 74 6f 20 61 6e 79 20 | 6f 66 20 79 6f 75 72 20 | to any |of your |
|00001590| 65 78 74 65 72 6e 61 6c | 73 2e 20 0d 69 69 2e 09 |external|s. .ii..|
|000015a0| 43 61 6c 6c 20 45 6e 74 | 65 72 4d 6f 76 69 65 73 |Call Ent|erMovies|
|000015b0| 20 69 6e 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | in the |beginnin|
|000015c0| 67 20 6f 66 20 65 61 63 | 68 20 65 78 74 65 72 6e |g of eac|h extern|
|000015d0| 61 6c 20 61 6e 64 20 45 | 78 69 74 4d 6f 76 69 65 |al and E|xitMovie|
|000015e0| 73 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |s at the| end of |
|000015f0| 65 61 63 68 20 65 78 74 | 65 72 6e 61 6c 2e 20 54 |each ext|ernal. T|
|00001600| 68 69 73 20 63 61 6e 20 | 63 61 75 73 65 20 61 20 |his can |cause a |
|00001610| 6c 6f 74 20 6f 66 20 77 | 61 73 74 65 64 20 43 50 |lot of w|asted CP|
|00001620| 55 20 74 69 6d 65 20 69 | 66 20 74 68 65 20 6d 61 |U time i|f the ma|
|00001630| 69 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 28 |in appli|cation (|
|00001640| 6f 72 20 73 6f 6d 65 6f | 6e 65 20 65 6c 73 65 20 |or someo|ne else |
|00001650| 69 6e 20 74 68 65 20 61 | 35 20 77 6f 72 6c 64 29 |in the a|5 world)|
|00001660| 20 64 69 64 6e d5 74 20 | 63 61 6c 6c 20 45 6e 74 | didn.t |call Ent|
|00001670| 65 72 4d 6f 76 69 65 73 | 20 66 69 72 73 74 20 62 |erMovies| first b|
|00001680| 65 63 61 75 73 65 20 65 | 61 63 68 20 6f 66 20 74 |ecause e|ach of t|
|00001690| 68 65 20 45 6e 74 65 72 | 4d 6f 76 69 65 73 20 63 |he Enter|Movies c|
|000016a0| 61 6c 6c 73 20 69 6e 20 | 79 6f 75 72 20 65 78 74 |alls in |your ext|
|000016b0| 65 72 6e 61 6c 73 20 77 | 69 6c 6c 20 72 65 71 75 |ernals w|ill requ|
|000016c0| 69 72 65 20 51 75 69 63 | 6b 54 69 6d 65 20 74 6f |ire Quic|kTime to|
|000016d0| 20 72 65 69 6e 69 74 69 | 61 6c 69 7a 65 2e 20 54 | reiniti|alize. T|
|000016e0| 68 65 20 72 65 61 73 6f | 6e 20 66 6f 72 20 74 68 |he reaso|n for th|
|000016f0| 69 73 20 69 73 20 74 68 | 61 74 20 79 6f 75 20 62 |is is th|at you b|
|00001700| 61 6c 61 6e 63 65 20 65 | 76 65 72 79 20 45 6e 74 |alance e|very Ent|
|00001710| 65 72 4d 6f 76 69 65 73 | 20 61 6e 64 20 74 68 65 |erMovies| and the|
|00001720| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 45 | corresp|onding E|
|00001730| 78 69 74 4d 6f 76 69 65 | 73 20 77 69 6c 6c 20 64 |xitMovie|s will d|
|00001740| 69 73 70 6f 73 65 20 6f | 66 20 74 68 65 20 51 75 |ispose o|f the Qu|
|00001750| 69 63 6b 54 69 6d 65 20 | 77 6f 72 6c 64 2e 20 54 |ickTime |world. T|
|00001760| 68 69 73 20 63 61 6e 20 | 62 65 20 76 65 72 79 20 |his can |be very |
|00001770| 62 61 64 20 69 66 20 79 | 6f 75 20 65 78 74 65 72 |bad if y|ou exter|
|00001780| 6e 61 6c 20 67 65 74 73 | 20 63 61 6c 6c 65 64 20 |nal gets| called |
|00001790| 6f 66 74 65 6e 2e 20 4f | 6e 20 74 68 65 20 6f 74 |often. O|n the ot|
|000017a0| 68 65 72 20 68 61 6e 64 | 2c 20 69 66 20 79 6f 75 |her hand|, if you|
|000017b0| 72 20 65 78 74 65 72 6e | 61 6c 20 68 61 73 20 61 |r extern|al has a|
|000017c0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|000017d0| 72 6f 75 74 69 6e 65 20 | 61 6e 64 20 63 6c 6f 73 |routine |and clos|
|000017e0| 65 20 72 6f 75 74 69 6e | 65 20 74 68 61 74 20 69 |e routin|e that i|
|000017f0| 73 20 63 61 6c 6c 65 64 | 20 62 65 66 6f 72 65 20 |s called| before |
|00001800| 61 6e 64 20 61 66 74 65 | 72 20 61 6c 6c 20 79 6f |and afte|r all yo|
|00001810| 75 72 20 6f 74 68 65 72 | 20 72 6f 75 74 69 6e 65 |ur other| routine|
|00001820| 73 2c 20 79 6f 75 20 63 | 61 6e 20 63 61 6c 6c 20 |s, you c|an call |
|00001830| 45 6e 74 65 72 4d 6f 76 | 69 65 73 20 69 6e 20 74 |EnterMov|ies in t|
|00001840| 68 65 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |he initi|alizatio|
|00001850| 6e 20 72 6f 75 74 69 6e | 65 2c 20 61 6e 64 20 74 |n routin|e, and t|
|00001860| 68 65 6e 20 63 61 6c 6c | 20 45 78 69 74 4d 6f 76 |hen call| ExitMov|
|00001870| 69 65 73 20 69 6e 20 79 | 6f 75 72 20 63 6c 6f 73 |ies in y|our clos|
|00001880| 65 20 72 6f 75 74 69 6e | 65 2e 20 4f 66 20 63 6f |e routin|e. Of co|
|00001890| 75 72 73 65 2c 20 65 61 | 63 68 20 6f 66 20 74 68 |urse, ea|ch of th|
|000018a0| 65 20 72 6f 75 74 69 6e | 65 73 20 63 61 6c 6c 65 |e routin|es calle|
|000018b0| 64 20 69 6e 20 62 65 74 | 77 65 65 6e 20 63 6f 75 |d in bet|ween cou|
|000018c0| 6c 64 20 63 61 6c 6c 20 | 65 69 74 68 65 72 20 45 |ld call |either E|
|000018d0| 6e 74 65 72 4d 6f 76 69 | 65 73 20 61 6e 64 20 45 |nterMovi|es and E|
|000018e0| 78 69 74 4d 6f 76 69 65 | 73 2c 20 6f 72 20 6e 6f |xitMovie|s, or no|
|000018f0| 74 20 63 61 6c 6c 20 65 | 69 74 68 65 72 20 6f 66 |t call e|ither of|
|00001900| 20 74 68 65 6d 20 61 74 | 20 61 6c 6c 2e 20 42 75 | them at| all. Bu|
|00001910| 74 2c 20 74 68 69 73 20 | 64 65 70 65 6e 64 73 20 |t, this |depends |
|00001920| 6f 6e 20 79 6f 75 72 20 | 69 6d 70 6c 65 6d 65 6e |on your |implemen|
|00001930| 74 61 74 69 6f 6e 2e 0d | 51 75 69 63 6b 54 69 6d |tation..|QuickTim|
|00001940| 65 20 4d 6f 76 69 65 20 | 54 6f 6f 6c 62 6f 78 20 |e Movie |Toolbox |
|00001950| 47 6c 6f 62 61 6c 73 20 | 61 72 65 20 53 74 6f 72 |Globals |are Stor|
|00001960| 65 64 20 69 6e 20 53 79 | 73 74 65 6d 20 48 65 61 |ed in Sy|stem Hea|
|00001970| 70 0d 51 3a 20 41 63 63 | 6f 72 64 69 6e 67 20 74 |p.Q: Acc|ording t|
|00001980| 6f 20 74 68 65 20 51 75 | 69 63 6b 54 69 6d 65 20 |o the Qu|ickTime |
|00001990| 4d 6f 76 69 65 20 54 6f | 6f 6c 62 6f 78 20 64 6f |Movie To|olbox do|
|000019a0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 2c 20 d2 54 68 |cumentat|ion, .Th|
|000019b0| 65 20 4d 6f 76 69 65 20 | 54 6f 6f 6c 62 6f 78 20 |e Movie |Toolbox |
|000019c0| 6d 61 69 6e 74 61 69 6e | 73 20 61 20 73 65 74 20 |maintain|s a set |
|000019d0| 6f 66 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |of globa|l variab|
|000019e0| 6c 65 73 20 66 6f 72 20 | 65 76 65 72 79 20 61 70 |les for |every ap|
|000019f0| 70 6c 69 63 61 74 69 6f | 6e 20 75 73 69 6e 67 20 |plicatio|n using |
|00001a00| 69 74 2e d3 20 48 6f 77 | 20 6d 75 63 68 20 67 6c |it.. How| much gl|
|00001a10| 6f 62 61 6c 20 6d 65 6d | 6f 72 79 20 69 73 20 72 |obal mem|ory is r|
|00001a20| 65 71 75 69 72 65 64 3f | 20 4f 75 72 20 61 70 70 |equired?| Our app|
|00001a30| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 73 68 79 20 |lication| is shy |
|00001a40| 6f 6e 20 67 6c 6f 62 61 | 6c 20 64 61 74 61 20 73 |on globa|l data s|
|00001a50| 70 61 63 65 2e 0d 5f 5f | 5f 0d 41 3a 20 54 68 65 |pace..__|_.A: The|
|00001a60| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6d 61 69 | informa|tion mai|
|00001a70| 6e 74 61 69 6e 65 64 20 | 69 73 20 6e 6f 74 20 6b |ntained |is not k|
|00001a80| 65 70 74 20 77 69 74 68 | 20 74 68 65 20 61 70 70 |ept with| the app|
|00001a90| 6c 69 63 61 74 69 6f 6e | d5 73 20 67 6c 6f 62 61 |lication|.s globa|
|00001aa0| 6c 20 76 61 72 69 61 62 | 6c 65 73 2e 20 54 68 65 |l variab|les. The|
|00001ab0| 20 68 61 6e 64 6c 65 20 | 63 72 65 61 74 65 64 20 | handle |created |
|00001ac0| 62 79 20 74 68 65 20 45 | 6e 74 65 72 4d 6f 76 69 |by the E|nterMovi|
|00001ad0| 65 73 20 63 61 6c 6c 20 | 69 73 20 73 74 6f 72 65 |es call |is store|
|00001ae0| 64 20 69 6e 20 74 68 65 | 20 73 79 73 74 65 6d 20 |d in the| system |
|00001af0| 68 65 61 70 2c 20 6e 6f | 74 20 69 6e 20 74 68 65 |heap, no|t in the|
|00001b00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 68 65 61 | applica|tion hea|
|00001b10| 70 2e 20 59 6f 75 20 64 | 6f 6e d5 74 20 68 61 76 |p. You d|on.t hav|
|00001b20| 65 20 74 6f 20 77 6f 72 | 72 79 20 61 62 6f 75 74 |e to wor|ry about|
|00001b30| 20 68 6f 77 20 6d 75 63 | 68 20 73 70 61 63 65 20 | how muc|h space |
|00001b40| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 69 6e 20 79 |to alloc|ate in y|
|00001b50| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |our appl|ication.|
|00001b60| 20 54 68 69 73 20 69 6e | 69 74 69 61 6c 69 7a 61 | This in|itializa|
|00001b70| 74 69 6f 6e 20 64 6f 65 | 73 20 6e 6f 74 20 61 66 |tion doe|s not af|
|00001b80| 66 65 63 74 20 79 6f 75 | 72 20 41 35 20 77 6f 72 |fect you|r A5 wor|
|00001b90| 6c 64 20 65 69 74 68 65 | 72 2e 0d 45 6e 74 65 72 |ld eithe|r..Enter|
|00001ba0| 4d 6f 76 69 65 73 20 69 | 6e 69 74 69 61 6c 69 7a |Movies i|nitializ|
|00001bb0| 65 73 20 65 76 65 72 79 | 74 68 69 6e 67 2c 20 69 |es every|thing, i|
|00001bc0| 6e 63 6c 75 64 69 6e 67 | 20 73 65 74 74 69 6e 67 |ncluding| setting|
|00001bd0| 20 75 70 20 74 68 65 20 | 6e 65 63 65 73 73 61 72 | up the |necessar|
|00001be0| 79 20 64 61 74 61 20 73 | 70 61 63 65 20 61 6e 64 |y data s|pace and|
|00001bf0| 20 63 72 65 61 74 69 6e | 67 20 61 20 68 61 6e 64 | creatin|g a hand|
|00001c00| 6c 65 20 74 6f 20 69 74 | 2e 20 0d 44 69 66 66 65 |le to it|. .Diffe|
|00001c10| 72 65 6e 74 20 41 35 20 | 57 6f 72 6c 64 73 20 77 |rent A5 |Worlds w|
|00001c20| 69 74 68 20 51 75 69 63 | 6b 54 69 6d 65 3f 0d 51 |ith Quic|kTime?.Q|
|00001c30| 3a 20 43 61 6e 20 77 65 | 20 75 73 65 20 61 20 64 |: Can we| use a d|
|00001c40| 69 66 66 65 72 65 6e 74 | 20 41 35 20 77 6f 72 6c |ifferent| A5 worl|
|00001c50| 64 20 77 69 74 68 20 51 | 75 69 63 6b 54 69 6d 65 |d with Q|uickTime|
|00001c60| 3f 20 4f 75 72 20 70 6c | 75 67 2d 69 6e 20 61 72 |? Our pl|ug-in ar|
|00001c70| 63 68 69 74 65 63 74 75 | 72 65 20 75 73 65 73 20 |chitectu|re uses |
|00001c80| 41 35 20 66 6f 72 20 67 | 6c 6f 62 61 6c 20 61 63 |A5 for g|lobal ac|
|00001c90| 63 65 73 73 2c 20 62 75 | 74 20 77 65 20 61 6c 6c |cess, bu|t we all|
|00001ca0| 6f 77 20 74 68 65 20 41 | 35 20 77 6f 72 6c 64 20 |ow the A|5 world |
|00001cb0| 74 6f 20 6d 6f 76 65 2e | 20 51 75 69 63 6b 54 69 |to move.| QuickTi|
|00001cc0| 6d 65 20 64 6f 65 73 6e | d5 74 20 73 65 65 6d 20 |me doesn|.t seem |
|00001cd0| 74 6f 20 61 70 70 72 65 | 63 69 61 74 65 20 74 68 |to appre|ciate th|
|00001ce0| 69 73 20 61 6e 64 20 64 | 6f 65 73 6e d5 74 20 74 |is and d|oesn.t t|
|00001cf0| 68 69 6e 6b 20 74 68 61 | 74 20 45 6e 74 65 72 4d |hink tha|t EnterM|
|00001d00| 6f 76 69 65 73 20 68 61 | 73 20 62 65 65 6e 20 63 |ovies ha|s been c|
|00001d10| 61 6c 6c 65 64 20 61 66 | 74 65 72 20 74 68 65 20 |alled af|ter the |
|00001d20| 41 35 20 77 6f 72 6c 64 | 20 6d 6f 76 65 73 2e 20 |A5 world| moves. |
|00001d30| 57 65 20 63 75 72 72 65 | 6e 74 6c 79 20 77 6f 72 |We curre|ntly wor|
|00001d40| 6b 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 62 79 |k around| this by|
|00001d50| 20 6c 6f 63 6b 69 6e 67 | 20 64 6f 77 6e 20 6f 75 | locking| down ou|
|00001d60| 72 20 41 35 20 77 6f 72 | 6c 64 20 62 75 74 20 77 |r A5 wor|ld but w|
|00001d70| 6f 75 6c 64 20 72 61 74 | 68 65 72 20 6e 6f 74 2e |ould rat|her not.|
|00001d80| 20 49 73 20 6c 6f 63 6b | 69 6e 67 20 64 6f 77 6e | Is lock|ing down|
|00001d90| 20 74 68 65 20 41 35 20 | 77 6f 72 6c 64 20 65 76 | the A5 |world ev|
|00001da0| 65 6e 20 67 6f 6f 64 20 | 65 6e 6f 75 67 68 3f 20 |en good |enough? |
|00001db0| 0d 5f 5f 5f 0d 41 3a 20 | 59 6f 75 20 63 61 6e 20 |.___.A: |You can |
|00001dc0| 75 73 65 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |use a di|fferent |
|00001dd0| 41 35 20 77 6f 72 6c 64 | 20 77 69 74 68 20 51 75 |A5 world| with Qu|
|00001de0| 69 63 6b 54 69 6d 65 2e | 20 51 75 69 63 6b 54 69 |ickTime.| QuickTi|
|00001df0| 6d 65 20 61 6c 6c 6f 63 | 61 74 65 73 20 61 20 6e |me alloc|ates a n|
|00001e00| 65 77 20 73 65 74 20 6f | 66 20 73 74 61 74 65 20 |ew set o|f state |
|00001e10| 76 61 72 69 61 62 6c 65 | 73 20 66 6f 72 20 65 61 |variable|s for ea|
|00001e20| 63 68 20 41 35 20 77 6f | 72 6c 64 20 74 68 61 74 |ch A5 wo|rld that|
|00001e30| d5 73 20 61 63 74 69 76 | 65 20 77 68 65 6e 20 45 |.s activ|e when E|
|00001e40| 6e 74 65 72 4d 6f 76 69 | 65 73 20 69 73 20 63 61 |nterMovi|es is ca|
|00001e50| 6c 6c 65 64 2e 20 48 6f | 77 65 76 65 72 2c 20 73 |lled. Ho|wever, s|
|00001e60| 69 6e 63 65 20 51 75 69 | 63 6b 54 69 6d 65 20 75 |ince Qui|ckTime u|
|00001e70| 73 65 73 20 41 35 20 74 | 6f 20 69 64 65 6e 74 69 |ses A5 t|o identi|
|00001e80| 66 79 20 65 61 63 68 20 | 51 75 69 63 6b 54 69 6d |fy each |QuickTim|
|00001e90| 65 20 63 6c 69 65 6e 74 | 2c 20 69 66 20 79 6f 75 |e client|, if you|
|00001ea0| 20 6d 6f 76 65 20 79 6f | 75 72 20 70 6c 75 67 2d | move yo|ur plug-|
|00001eb0| 69 6e d5 73 20 41 35 20 | 77 6f 72 6c 64 2c 20 51 |in.s A5 |world, Q|
|00001ec0| 75 69 63 6b 54 69 6d 65 | 20 77 69 6c 6c 20 6e 6f |uickTime| will no|
|00001ed0| 20 6c 6f 6e 67 65 72 20 | 72 65 63 6f 67 6e 69 7a | longer |recogniz|
|00001ee0| 65 20 74 68 61 74 20 79 | 6f 75 d5 76 65 20 63 61 |e that y|ou.ve ca|
|00001ef0| 6c 6c 65 64 20 45 6e 74 | 65 72 4d 6f 76 69 65 73 |lled Ent|erMovies|
|00001f00| 20 66 6f 72 20 74 68 61 | 74 20 63 6c 69 65 6e 74 | for tha|t client|
|00001f10| 2e 20 53 6f 20 79 6f 75 | 20 63 61 6e 20 75 73 65 |. So you| can use|
|00001f20| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 41 35 20 | a diffe|rent A5 |
|00001f30| 77 6f 72 6c 64 2c 20 62 | 75 74 20 79 6f 75 20 77 |world, b|ut you w|
|00001f40| 69 6c 6c 20 68 61 76 65 | 20 74 6f 20 6c 6f 63 6b |ill have| to lock|
|00001f50| 20 74 68 65 20 41 35 20 | 77 6f 72 6c 64 20 64 6f | the A5 |world do|
|00001f60| 77 6e 2e 0d 48 6f 77 20 | 74 6f 20 47 65 74 20 4d |wn..How |to Get M|
|00001f70| 6f 76 69 65 20 46 72 61 | 6d 65 20 54 69 6d 65 20 |ovie Fra|me Time |
|00001f80| 50 61 72 61 6d 65 74 65 | 72 20 66 6f 72 20 47 65 |Paramete|r for Ge|
|00001f90| 74 4d 6f 76 69 65 50 69 | 63 74 0d 51 3a 20 48 6f |tMoviePi|ct.Q: Ho|
|00001fa0| 77 20 64 6f 20 49 20 66 | 69 6e 64 20 74 68 65 20 |w do I f|ind the |
|00001fb0| 63 6f 72 72 65 63 74 20 | 74 69 6d 65 20 76 61 6c |correct |time val|
|00001fc0| 75 65 73 20 74 6f 20 70 | 61 73 73 20 74 6f 20 47 |ues to p|ass to G|
|00001fd0| 65 74 4d 6f 76 69 65 50 | 69 63 74 2c 20 74 6f 20 |etMovieP|ict, to |
|00001fe0| 67 65 74 20 61 6c 6c 20 | 74 68 65 20 73 65 71 75 |get all |the sequ|
|00001ff0| 65 6e 74 69 61 6c 20 66 | 72 61 6d 65 73 20 6f 66 |ential f|rames of|
|00002000| 20 61 20 51 75 69 63 6b | 54 69 6d 65 20 6d 6f 76 | a Quick|Time mov|
|00002010| 69 65 3f 0d 5f 5f 5f 0d | 41 3a 20 54 68 65 20 62 |ie?.___.|A: The b|
|00002020| 65 73 74 20 77 61 79 20 | 74 6f 20 66 69 6e 64 20 |est way |to find |
|00002030| 74 68 65 20 63 6f 72 72 | 65 63 74 20 74 69 6d 65 |the corr|ect time|
|00002040| 20 74 6f 20 70 61 73 73 | 20 74 6f 20 67 65 74 20 | to pass| to get |
|00002050| 6d 6f 76 69 65 20 66 72 | 61 6d 65 73 20 69 73 20 |movie fr|ames is |
|00002060| 74 6f 20 63 61 6c 6c 20 | 74 68 65 20 47 65 74 4d |to call |the GetM|
|00002070| 6f 76 69 65 4e 65 78 74 | 49 6e 74 65 72 65 73 74 |ovieNext|Interest|
|00002080| 69 6e 67 54 69 6d 65 20 | 72 6f 75 74 69 6e 65 20 |ingTime |routine |
|00002090| 72 65 70 65 61 74 65 64 | 6c 79 2e 20 4e 6f 74 65 |repeated|ly. Note|
|000020a0| 20 74 68 61 74 20 74 68 | 65 20 66 69 72 73 74 20 | that th|e first |
|000020b0| 74 69 6d 65 20 79 6f 75 | 20 63 61 6c 6c 20 47 65 |time you| call Ge|
|000020c0| 74 4d 6f 76 69 65 4e 65 | 78 74 49 6e 74 65 72 65 |tMovieNe|xtIntere|
|000020d0| 73 74 69 6e 67 54 69 6d | 65 20 69 74 73 20 66 6c |stingTim|e its fl|
|000020e0| 61 67 73 20 70 61 72 61 | 6d 65 74 65 72 20 73 68 |ags para|meter sh|
|000020f0| 6f 75 6c 64 20 68 61 76 | 65 20 61 20 76 61 6c 75 |ould hav|e a valu|
|00002100| 65 20 6f 66 20 6e 65 78 | 74 54 69 6d 65 4d 65 64 |e of nex|tTimeMed|
|00002110| 69 61 53 61 6d 70 6c 65 | 2b 6e 65 78 74 54 69 6d |iaSample|+nextTim|
|00002120| 65 45 64 67 65 4f 4b 20 | 74 6f 20 67 65 74 20 74 |eEdgeOK |to get t|
|00002130| 68 65 20 66 69 72 73 74 | 20 66 72 61 6d 65 2e 20 |he first| frame. |
|00002140| 0d 46 6f 72 20 73 75 62 | 73 65 71 75 65 6e 74 20 |.For sub|sequent |
|00002150| 63 61 6c 6c 73 20 74 68 | 65 20 76 61 6c 75 65 20 |calls th|e value |
|00002160| 6f 66 20 66 6c 61 67 73 | 20 73 68 6f 75 6c 64 20 |of flags| should |
|00002170| 62 65 20 6e 65 78 74 54 | 69 6d 65 4d 65 64 69 61 |be nextT|imeMedia|
|00002180| 53 61 6d 70 6c 65 2e 20 | 41 6c 73 6f 2c 20 74 68 |Sample. |Also, th|
|00002190| 65 20 77 68 69 63 68 4d | 65 64 69 61 54 79 70 65 |e whichM|ediaType|
|000021a0| 73 20 70 61 72 61 6d 65 | 74 65 72 20 73 68 6f 75 |s parame|ter shou|
|000021b0| 6c 64 20 69 6e 63 6c 75 | 64 65 20 6f 6e 6c 79 20 |ld inclu|de only |
|000021c0| 74 72 61 63 6b 73 20 77 | 69 74 68 20 76 69 73 75 |tracks w|ith visu|
|000021d0| 61 6c 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |al infor|mation, |
|000021e0| 56 69 73 75 61 6c 4d 65 | 64 69 61 43 68 61 72 61 |VisualMe|diaChara|
|000021f0| 63 74 65 72 69 73 74 69 | 63 20 6f 72 20 27 65 79 |cteristi|c or 'ey|
|00002200| 65 73 27 2e 20 43 68 65 | 63 6b 20 74 68 65 20 4d |es'. Che|ck the M|
|00002210| 6f 76 69 65 20 54 6f 6f | 6c 62 6f 78 20 63 68 61 |ovie Too|lbox cha|
|00002220| 70 74 65 72 20 6f 66 20 | 74 68 65 20 51 75 69 63 |pter of |the Quic|
|00002230| 6b 54 69 6d 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |kTime do|cumentat|
|00002240| 69 6f 6e 20 66 6f 72 20 | 64 65 74 61 69 6c 73 20 |ion for |details |
|00002250| 61 62 6f 75 74 20 74 68 | 65 20 47 65 74 4d 6f 76 |about th|e GetMov|
|00002260| 69 65 4e 65 78 74 49 6e | 74 65 72 65 73 74 69 6e |ieNextIn|terestin|
|00002270| 67 54 69 6d 65 20 63 61 | 6c 6c 2e 20 0d 50 75 74 |gTime ca|ll. .Put|
|00002280| 4d 6f 76 69 65 49 6e 74 | 6f 48 61 6e 64 6c 65 20 |MovieInt|oHandle |
|00002290| 61 6e 64 20 44 61 74 61 | 20 46 6f 72 6b 73 0d 51 |and Data| Forks.Q|
|000022a0| 3a 20 49 20 73 61 76 65 | 20 50 49 43 54 73 20 74 |: I save| PICTs t|
|000022b0| 6f 20 6d 79 20 64 6f 63 | 75 6d 65 6e 74 d5 73 20 |o my doc|ument.s |
|000022c0| 64 61 74 61 20 66 6f 72 | 6b 20 62 79 20 77 72 69 |data for|k by wri|
|000022d0| 74 69 6e 67 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ting the| content|
|000022e0| 73 20 6f 66 20 74 68 65 | 20 50 69 63 48 61 6e 64 |s of the| PicHand|
|000022f0| 6c 65 2e 20 54 6f 20 73 | 61 76 65 20 6d 6f 76 69 |le. To s|ave movi|
|00002300| 65 73 2c 20 64 6f 20 49 | 20 63 6f 6e 76 65 72 74 |es, do I| convert|
|00002310| 20 74 68 65 20 6d 6f 76 | 69 65 20 74 6f 20 61 20 | the mov|ie to a |
|00002320| 68 61 6e 64 6c 65 2c 20 | 61 6e 64 20 74 68 65 6e |handle, |and then|
|00002330| 20 73 61 76 65 20 74 68 | 61 74 20 61 73 20 49 20 | save th|at as I |
|00002340| 77 6f 75 6c 64 20 77 69 | 74 68 20 50 49 43 54 73 |would wi|th PICTs|
|00002350| 3f 20 49 20 6a 75 73 74 | 20 77 61 6e 74 20 74 68 |? I just| want th|
|00002360| 65 20 66 69 6c 65 20 72 | 65 66 65 72 65 6e 63 65 |e file r|eference|
|00002370| 73 2c 20 6e 6f 74 20 74 | 68 65 20 64 61 74 61 20 |s, not t|he data |
|00002380| 69 74 73 65 6c 66 2e 0d | 5f 5f 5f 0d 41 3a 20 54 |itself..|___.A: T|
|00002390| 6f 20 73 61 76 65 20 6d | 6f 76 69 65 73 20 74 68 |o save m|ovies th|
|000023a0| 61 74 20 61 72 65 20 73 | 75 69 74 61 62 6c 65 20 |at are s|uitable |
|000023b0| 66 6f 72 20 73 74 6f 72 | 61 67 65 20 69 6e 20 61 |for stor|age in a|
|000023c0| 20 66 69 6c 65 2c 20 75 | 73 65 20 50 75 74 4d 6f | file, u|se PutMo|
|000023d0| 76 69 65 49 6e 74 6f 44 | 61 74 61 46 6f 72 6b 2e |vieIntoD|ataFork.|
|000023e0| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 77 | This fu|nction w|
|000023f0| 69 6c 6c 20 73 74 6f 72 | 65 20 61 20 6d 6f 76 69 |ill stor|e a movi|
|00002400| 65 20 69 6e 20 74 68 65 | 20 64 61 74 61 20 66 6f |e in the| data fo|
|00002410| 72 6b 20 6f 66 20 61 20 | 67 69 76 65 6e 20 66 69 |rk of a |given fi|
|00002420| 6c 65 2c 20 61 6e 64 20 | 79 6f 75 20 63 6f 75 6c |le, and |you coul|
|00002430| 64 20 63 61 6c 6c 20 4e | 65 77 4d 6f 76 69 65 46 |d call N|ewMovieF|
|00002440| 72 6f 6d 44 61 74 61 46 | 6f 72 6b 20 74 6f 20 72 |romDataF|ork to r|
|00002450| 65 63 6f 6e 73 74 72 75 | 63 74 20 74 68 65 20 6d |econstru|ct the m|
|00002460| 6f 76 69 65 20 66 6f 72 | 20 70 6c 61 79 62 61 63 |ovie for| playbac|
|00002470| 6b 20 6f 72 20 65 64 69 | 74 69 6e 67 2e 0d 59 6f |k or edi|ting..Yo|
|00002480| 75 20 73 68 6f 75 6c 64 | 20 61 6c 73 6f 20 72 65 |u should| also re|
|00002490| 61 64 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |ad the d|ocumenta|
|000024a0| 74 69 6f 6e 20 72 65 67 | 61 72 64 69 6e 67 20 74 |tion reg|arding t|
|000024b0| 68 65 20 4d 6f 76 69 65 | 20 54 6f 6f 6c 62 6f 78 |he Movie| Toolbox|
|000024c0| 20 46 6c 61 74 74 65 6e | 4d 6f 76 69 65 20 70 72 | Flatten|Movie pr|
|000024d0| 6f 63 65 64 75 72 65 2c | 20 77 68 69 63 68 20 63 |ocedure,| which c|
|000024e0| 72 65 61 74 65 73 20 61 | 20 66 69 6c 65 20 74 68 |reates a| file th|
|000024f0| 61 74 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |at conta|ins the |
|00002500| 27 6d 6f 6f 76 27 20 72 | 65 73 6f 75 72 63 65 20 |'moov' r|esource |
|00002510| 61 6e 64 20 74 68 65 20 | 64 61 74 61 20 61 6c 6c |and the |data all|
|00002520| 20 69 6e 20 74 68 65 20 | 64 61 74 61 20 66 6f 72 | in the |data for|
|00002530| 6b 2e 20 54 68 65 20 61 | 64 76 61 6e 74 61 67 65 |k. The a|dvantage|
|00002540| 20 68 65 72 65 20 69 73 | 20 74 68 61 74 20 74 68 | here is| that th|
|00002550| 65 20 6d 6f 76 69 65 20 | 66 69 6c 65 20 79 6f 75 |e movie |file you|
|00002560| 20 63 72 65 61 74 65 20 | 75 73 69 6e 67 20 46 6c | create |using Fl|
|00002570| 61 74 74 65 6e 4d 6f 76 | 69 65 20 63 61 6e 20 62 |attenMov|ie can b|
|00002580| 65 20 72 65 61 64 20 62 | 79 20 61 6e 79 20 6f 74 |e read b|y any ot|
|00002590| 68 65 72 20 51 75 69 63 | 6b 54 69 6d 65 2d 63 61 |her Quic|kTime-ca|
|000025a0| 70 61 62 6c 65 20 61 70 | 70 6c 69 63 61 74 69 6f |pable ap|plicatio|
|000025b0| 6e 2e 0d 45 6d 62 65 64 | 64 69 6e 67 20 4d 6f 76 |n..Embed|ding Mov|
|000025c0| 69 65 73 20 28 4d 75 6c | 74 69 70 6c 65 29 20 49 |ies (Mul|tiple) I|
|000025d0| 6e 74 6f 20 61 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nto a Ma|cintosh |
|000025e0| 46 69 6c 65 0d 51 3a 20 | 49 73 20 74 68 65 72 65 |File.Q: |Is there|
|000025f0| 20 61 20 77 61 79 20 74 | 6f 20 65 6d 62 65 64 20 | a way t|o embed |
|00002600| 61 20 51 75 69 63 6b 54 | 69 6d 65 20 6d 6f 76 69 |a QuickT|ime movi|
|00002610| 65 20 69 6e 74 6f 20 61 | 20 4d 61 63 69 6e 74 6f |e into a| Macinto|
|00002620| 73 68 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 69 |sh file |containi|
|00002630| 6e 67 20 6e 6f 6e 2d 51 | 75 69 63 6b 54 69 6d 65 |ng non-Q|uickTime|
|00002640| 20 73 74 75 66 66 20 61 | 6e 64 20 67 65 74 20 74 | stuff a|nd get t|
|00002650| 68 65 20 4d 6f 76 69 65 | 20 54 6f 6f 6c 62 6f 78 |he Movie| Toolbox|
|00002660| 20 74 6f 20 70 6c 61 79 | 20 74 68 65 20 6d 6f 76 | to play| the mov|
|00002670| 69 65 20 62 61 63 6b 20 | 63 6f 72 72 65 63 74 6c |ie back |correctl|
|00002680| 79 3f 20 49 66 20 73 6f | 2c 20 63 61 6e 20 77 65 |y? If so|, can we|
|00002690| 20 70 61 73 73 20 74 68 | 65 20 73 61 6d 65 20 6d | pass th|e same m|
|000026a0| 6f 76 69 65 20 68 61 6e | 64 6c 65 20 74 6f 20 51 |ovie han|dle to Q|
|000026b0| 75 69 63 6b 54 69 6d 65 | 20 66 6f 72 20 57 69 6e |uickTime| for Win|
|000026c0| 64 6f 77 73 20 61 6e 64 | 20 67 65 74 20 69 74 20 |dows and| get it |
|000026d0| 74 6f 20 70 6c 61 79 20 | 62 61 63 6b 20 74 68 65 |to play |back the|
|000026e0| 20 73 61 6d 65 20 64 61 | 74 61 20 66 72 6f 6d 20 | same da|ta from |
|000026f0| 74 68 65 20 73 61 6d 65 | 20 66 69 6c 65 3f 20 0d |the same| file? .|
|00002700| 5f 5f 5f 0d 41 3a 20 54 | 6f 20 61 64 64 20 51 75 |___.A: T|o add Qu|
|00002710| 69 63 6b 54 69 6d 65 20 | 6d 6f 76 69 65 20 64 61 |ickTime |movie da|
|00002720| 74 61 20 74 6f 20 6e 6f | 6e 2d 51 75 69 63 6b 54 |ta to no|n-QuickT|
|00002730| 69 6d 65 20 66 69 6c 65 | 73 2c 20 6a 75 73 74 20 |ime file|s, just |
|00002740| 73 74 6f 72 65 20 74 68 | 65 20 6d 6f 76 69 65 20 |store th|e movie |
|00002750| 64 61 74 61 20 69 6e 20 | 74 68 65 20 66 69 6c 65 |data in |the file|
|00002760| 20 75 73 69 6e 67 20 46 | 6c 61 74 74 65 6e 4d 6f | using F|lattenMo|
|00002770| 76 69 65 44 61 74 61 20 | 77 69 74 68 20 74 68 65 |vieData |with the|
|00002780| 20 66 6c 61 74 74 65 6e | 41 64 64 4d 6f 76 69 65 | flatten|AddMovie|
|00002790| 54 6f 44 61 74 61 46 6f | 72 6b 20 66 6c 61 67 2e |ToDataFo|rk flag.|
|000027a0| 20 53 69 6e 63 65 20 46 | 6c 61 74 74 65 6e 4d 6f | Since F|lattenMo|
|000027b0| 76 69 65 44 61 74 61 20 | 77 69 6c 6c 20 73 69 6d |vieData |will sim|
|000027c0| 70 6c 79 20 61 70 70 65 | 6e 64 20 74 6f 20 61 20 |ply appe|nd to a |
|000027d0| 64 61 74 61 20 66 6f 72 | 6b 20 6f 66 20 61 20 66 |data for|k of a f|
|000027e0| 69 6c 65 2c 20 79 6f 75 | 20 63 61 6e 20 70 61 73 |ile, you| can pas|
|000027f0| 73 20 69 74 20 61 6e 79 | 20 64 61 74 61 20 66 69 |s it any| data fi|
|00002800| 6c 65 20 61 6e 64 20 69 | 74 20 77 69 6c 6c 20 61 |le and i|t will a|
|00002810| 70 70 65 6e 64 20 74 68 | 65 20 6d 6f 76 69 65 20 |ppend th|e movie |
|00002820| 64 61 74 61 20 74 6f 20 | 74 68 61 74 20 66 69 6c |data to |that fil|
|00002830| 65 2e 20 51 75 69 63 6b | 54 69 6d 65 20 64 6f 65 |e. Quick|Time doe|
|00002840| 73 6e d5 74 20 63 61 72 | 65 20 77 68 61 74 d5 73 |sn.t car|e what.s|
|00002850| 20 73 74 6f 72 65 64 20 | 62 65 66 6f 72 65 20 6f | stored |before o|
|00002860| 72 20 61 66 74 65 72 20 | 74 68 65 20 6d 6f 76 69 |r after |the movi|
|00002870| 65 20 64 61 74 61 2c 20 | 61 73 20 6c 6f 6e 67 20 |e data, |as long |
|00002880| 61 73 20 79 6f 75 20 64 | 6f 6e d5 74 20 72 65 70 |as you d|on.t rep|
|00002890| 6f 73 69 74 69 6f 6e 20 | 74 68 65 20 6d 6f 76 69 |osition |the movi|
|000028a0| 65 20 64 61 74 61 20 77 | 69 74 68 69 6e 20 74 68 |e data w|ithin th|
|000028b0| 65 20 64 61 74 61 20 66 | 69 6c 65 2e 20 49 66 20 |e data f|ile. If |
|000028c0| 79 6f 75 20 64 6f 2c 20 | 74 68 65 20 6d 6f 76 69 |you do, |the movi|
|000028d0| 65 20 72 65 66 65 72 65 | 6e 63 65 73 20 77 69 6c |e refere|nces wil|
|000028e0| 6c 20 62 65 20 69 6e 63 | 6f 72 72 65 63 74 20 73 |l be inc|orrect s|
|000028f0| 69 6e 63 65 20 74 68 65 | 79 20 61 72 65 6e d5 74 |ince the|y aren.t|
|00002900| 20 75 70 64 61 74 65 64 | 20 77 68 65 6e 20 79 6f | updated| when yo|
|00002910| 75 20 65 64 69 74 20 74 | 68 65 20 66 69 6c 65 2e |u edit t|he file.|
|00002920| 20 54 68 65 20 72 65 74 | 75 72 6e 65 64 20 6d 6f | The ret|urned mo|
|00002930| 76 69 65 20 28 66 72 6f | 6d 20 46 6c 61 74 74 65 |vie (fro|m Flatte|
|00002940| 6e 4d 6f 76 69 65 44 61 | 74 61 29 20 77 69 6c 6c |nMovieDa|ta) will|
|00002950| 20 70 72 6f 70 65 72 6c | 79 20 72 65 73 6f 6c 76 | properl|y resolv|
|00002960| 65 20 74 6f 20 74 68 61 | 74 20 64 61 74 61 20 66 |e to tha|t data f|
|00002970| 69 6c 65 2e 20 59 6f 75 | 20 63 61 6e 20 74 68 65 |ile. You| can the|
|00002980| 6e 20 73 61 76 65 20 74 | 68 69 73 20 6d 6f 76 69 |n save t|his movi|
|00002990| 65 20 69 6e 20 74 68 65 | 20 64 61 74 61 20 66 6f |e in the| data fo|
|000029a0| 72 6b 20 77 69 74 68 20 | 50 75 74 4d 6f 76 69 65 |rk with |PutMovie|
|000029b0| 49 6e 74 6f 44 61 74 61 | 46 6f 72 6b 20 6f 72 20 |IntoData|Fork or |
|000029c0| 69 6e 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |in the r|esource |
|000029d0| 66 6f 72 6b 20 77 69 74 | 68 20 41 64 64 4d 6f 76 |fork wit|h AddMov|
|000029e0| 69 65 52 65 73 6f 75 72 | 63 65 2e 20 49 66 20 74 |ieResour|ce. If t|
|000029f0| 68 65 20 6d 6f 76 69 65 | 20 69 73 20 73 61 76 65 |he movie| is save|
|00002a00| 64 20 69 6e 20 74 68 65 | 20 64 61 74 61 20 66 6f |d in the| data fo|
|00002a10| 72 6b 2c 20 69 74 20 63 | 61 6e 20 62 65 20 72 65 |rk, it c|an be re|
|00002a20| 74 72 69 65 76 65 64 20 | 62 79 20 62 6f 74 68 20 |trieved |by both |
|00002a30| 51 75 69 63 6b 54 69 6d | 65 20 61 6e 64 20 51 75 |QuickTim|e and Qu|
|00002a40| 69 63 6b 54 69 6d 65 20 | 66 6f 72 20 57 69 6e 64 |ickTime |for Wind|
|00002a50| 6f 77 73 20 77 69 74 68 | 20 4e 65 77 4d 6f 76 69 |ows with| NewMovi|
|00002a60| 65 46 72 6f 6d 44 61 74 | 61 46 6f 72 6b 2e 0d 59 |eFromDat|aFork..Y|
|00002a70| 6f 75 20 63 61 6e 2c 20 | 69 6e 20 66 61 63 74 2c |ou can, |in fact,|
|00002a80| 20 73 74 6f 72 65 20 6d | 75 6c 74 69 70 6c 65 20 | store m|ultiple |
|00002a90| 6d 6f 76 69 65 73 20 73 | 69 6d 70 6c 79 20 62 79 |movies s|imply by|
|00002aa0| 20 63 61 6c 6c 69 6e 67 | 20 46 6c 61 74 74 65 6e | calling| Flatten|
|00002ab0| 4d 6f 76 69 65 44 61 74 | 61 20 61 6e 64 20 50 75 |MovieDat|a and Pu|
|00002ac0| 74 4d 6f 76 69 65 49 6e | 74 6f 44 61 74 61 46 6f |tMovieIn|toDataFo|
|00002ad0| 72 6b 20 73 65 76 65 72 | 61 6c 20 74 69 6d 65 73 |rk sever|al times|
|00002ae0| 20 6f 6e 20 74 68 65 20 | 73 61 6d 65 20 66 69 6c | on the |same fil|
|00002af0| 65 2e 20 45 61 63 68 20 | 46 6c 61 74 74 65 6e 4d |e. Each |FlattenM|
|00002b00| 6f 76 69 65 44 61 74 61 | 20 63 61 6c 6c 20 61 70 |ovieData| call ap|
|00002b10| 70 65 6e 64 73 20 6e 65 | 77 20 64 61 74 61 2c 20 |pends ne|w data, |
|00002b20| 61 73 73 75 6d 69 6e 67 | 20 74 68 65 20 63 72 65 |assuming| the cre|
|00002b30| 61 74 65 4d 6f 76 69 65 | 46 69 6c 65 44 61 74 61 |ateMovie|FileData|
|00002b40| 43 75 72 46 69 6c 65 20 | 66 6c 61 67 20 69 73 6e |CurFile |flag isn|
|00002b50| d5 74 20 73 65 74 2e 0d | 53 65 65 20 61 6c 73 6f |.t set..|See also|
|00002b60| 20 74 68 65 20 61 72 74 | 69 63 6c 65 20 43 72 6f | the art|icle Cro|
|00002b70| 73 73 2d 50 6c 61 74 66 | 6f 72 6d 20 43 6f 6d 70 |ss-Platf|orm Comp|
|00002b80| 61 74 69 62 69 6c 69 74 | 79 20 61 6e 64 20 4d 75 |atibilit|y and Mu|
|00002b90| 6c 74 69 70 6c 65 2d 4d | 6f 76 69 65 20 46 69 6c |ltiple-M|ovie Fil|
|00002ba0| 65 73 20 62 79 20 4a 6f | 68 6e 20 57 61 6e 67 20 |es by Jo|hn Wang |
|00002bb0| 69 6e 20 64 65 76 65 6c | 6f 70 20 23 31 37 2e 0d |in devel|op #17..|
|00002bc0| 43 6c 69 70 70 69 6e 67 | 20 51 75 69 63 6b 54 69 |Clipping| QuickTi|
|00002bd0| 6d 65 20 4d 6f 76 69 65 | 20 50 6f 73 74 65 72 73 |me Movie| Posters|
|00002be0| 0d 51 3a 20 4f 75 72 20 | 61 70 70 6c 69 63 61 74 |.Q: Our |applicat|
|00002bf0| 69 6f 6e 20 75 73 65 73 | 20 74 68 65 20 6d 6f 76 |ion uses| the mov|
|00002c00| 69 65 20 70 6f 73 74 65 | 72 20 61 73 20 61 20 73 |ie poste|r as a s|
|00002c10| 74 69 6c 6c 20 66 72 61 | 6d 65 20 69 6e 20 61 20 |till fra|me in a |
|00002c20| 63 65 6c 6c 2c 20 73 69 | 6d 69 6c 61 72 20 74 6f |cell, si|milar to|
|00002c30| 20 75 73 69 6e 67 20 61 | 20 50 49 43 54 2e 20 49 | using a| PICT. I|
|00002c40| 66 20 61 20 75 73 65 72 | 20 73 69 7a 65 73 20 74 |f a user| sizes t|
|00002c50| 68 65 20 63 65 6c 6c 20 | 77 69 64 74 68 20 73 6f |he cell |width so|
|00002c60| 20 74 68 61 74 20 69 74 | d5 73 20 6e 61 72 72 6f | that it|.s narro|
|00002c70| 77 65 72 20 74 68 61 6e | 20 74 68 65 20 70 6f 73 |wer than| the pos|
|00002c80| 74 65 72 2c 20 65 76 65 | 6e 20 74 68 6f 75 67 68 |ter, eve|n though|
|00002c90| 20 77 65 20 63 6c 69 70 | 20 74 68 65 20 64 72 61 | we clip| the dra|
|00002ca0| 77 69 6e 67 20 74 6f 20 | 74 68 65 20 63 65 6c 6c |wing to |the cell|
|00002cb0| 20 73 69 7a 65 2c 20 51 | 75 69 63 6b 54 69 6d 65 | size, Q|uickTime|
|00002cc0| 20 70 6f 73 74 65 72 73 | 20 64 72 61 77 20 74 68 | posters| draw th|
|00002cd0| 65 69 72 20 66 75 6c 6c | 20 77 69 64 74 68 2c 20 |eir full| width, |
|00002ce0| 77 72 69 74 69 6e 67 20 | 6f 76 65 72 20 77 68 61 |writing |over wha|
|00002cf0| 74 65 76 65 72 20 69 73 | 20 69 6e 20 74 68 65 20 |tever is| in the |
|00002d00| 77 61 79 2e 20 50 69 63 | 74 75 72 65 73 20 63 6c |way. Pic|tures cl|
|00002d10| 69 70 20 74 68 72 6f 75 | 67 68 20 44 72 61 77 50 |ip throu|gh DrawP|
|00002d20| 69 63 74 75 72 65 3b 20 | 77 68 79 20 64 6f 65 73 |icture; |why does|
|00002d30| 6e d5 74 20 53 68 6f 77 | 4d 6f 76 69 65 50 6f 73 |n.t Show|MoviePos|
|00002d40| 74 65 72 20 73 74 61 79 | 20 77 69 74 68 69 6e 20 |ter stay| within |
|00002d50| 74 68 65 20 63 6c 69 70 | 70 69 6e 67 20 72 65 67 |the clip|ping reg|
|00002d60| 69 6f 6e 3f 0d 5f 5f 5f | 0d 41 3a 20 53 68 6f 77 |ion?.___|.A: Show|
|00002d70| 4d 6f 76 69 65 50 6f 73 | 74 65 72 2c 20 61 73 20 |MoviePos|ter, as |
|00002d80| 77 65 6c 6c 20 61 73 20 | 74 68 65 20 6d 6f 76 69 |well as |the movi|
|00002d90| 65 20 61 6e 64 20 70 72 | 65 76 69 65 77 20 73 68 |e and pr|eview sh|
|00002da0| 6f 77 69 6e 67 20 63 61 | 6c 6c 73 2c 20 75 73 65 |owing ca|lls, use|
|00002db0| 73 20 74 68 65 20 6d 6f | 76 69 65 20 63 6c 69 70 |s the mo|vie clip|
|00002dc0| 70 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 69 73 |ping cha|racteris|
|00002dd0| 74 69 63 73 20 72 61 74 | 68 65 72 20 74 68 61 6e |tics rat|her than|
|00002de0| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00002df0| 20 70 6f 72 74 d5 73 20 | 63 6c 69 70 70 69 6e 67 | port.s |clipping|
|00002e00| 20 72 65 67 69 6f 6e 2e | 20 59 6f 75 20 6d 75 73 | region.| You mus|
|00002e10| 74 20 73 65 74 20 74 68 | 65 20 6d 6f 76 69 65 d5 |t set th|e movie.|
|00002e20| 73 20 63 6c 69 70 70 69 | 6e 67 20 72 65 67 69 6f |s clippi|ng regio|
|00002e30| 6e 20 74 6f 20 6f 62 74 | 61 69 6e 20 74 68 65 20 |n to obt|ain the |
|00002e40| 72 65 73 75 6c 74 73 20 | 79 6f 75 20 77 61 6e 74 |results |you want|
|00002e50| 2e 20 41 6e 20 65 61 73 | 69 65 72 20 77 61 79 20 |. An eas|ier way |
|00002e60| 74 6f 20 64 6f 20 74 68 | 69 73 20 69 73 20 74 6f |to do th|is is to|
|00002e70| 20 67 65 74 20 74 68 65 | 20 70 69 63 74 75 72 65 | get the| picture|
|00002e80| 20 66 6f 72 20 74 68 65 | 20 70 6f 73 74 65 72 20 | for the| poster |
|00002e90| 62 79 20 63 61 6c 6c 69 | 6e 67 20 47 65 74 4d 6f |by calli|ng GetMo|
|00002ea0| 76 69 65 50 6f 73 74 65 | 72 50 69 63 74 2c 20 61 |viePoste|rPict, a|
|00002eb0| 6e 64 20 74 68 65 6e 20 | 73 69 6d 70 6c 79 20 75 |nd then |simply u|
|00002ec0| 73 65 20 44 72 61 77 50 | 69 63 74 75 72 65 20 74 |se DrawP|icture t|
|00002ed0| 6f 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 70 6f |o displa|y the po|
|00002ee0| 73 74 65 72 2e 20 42 65 | 63 61 75 73 65 20 74 68 |ster. Be|cause th|
|00002ef0| 69 73 20 69 73 20 6a 75 | 73 74 20 61 20 70 69 63 |is is ju|st a pic|
|00002f00| 74 75 72 65 2c 20 74 68 | 65 20 63 6c 69 70 70 69 |ture, th|e clippi|
|00002f10| 6e 67 20 72 65 67 69 6f | 6e 20 6f 66 20 74 68 65 |ng regio|n of the|
|00002f20| 20 70 6f 72 74 20 69 73 | 20 68 6f 6e 6f 72 65 64 | port is| honored|
|00002f30| 2e 20 54 68 69 73 20 77 | 61 79 20 79 6f 75 20 64 |. This w|ay you d|
|00002f40| 6f 6e d5 74 20 6e 65 65 | 64 20 64 69 66 66 65 72 |on.t nee|d differ|
|00002f50| 65 6e 74 20 63 6f 64 65 | 20 66 6f 72 20 6d 6f 76 |ent code| for mov|
|00002f60| 69 65 73 20 61 6e 64 20 | 70 69 63 74 75 72 65 73 |ies and |pictures|
|00002f70| 2e 0d 51 75 69 63 6b 54 | 69 6d 65 20 46 69 6c 65 |..QuickT|ime File|
|00002f80| 20 41 75 64 69 6f 20 52 | 65 74 72 69 65 76 61 6c | Audio R|etrieval|
|00002f90| 0d 51 3a 20 48 6f 77 20 | 63 61 6e 20 49 20 72 65 |.Q: How |can I re|
|00002fa0| 74 72 69 65 76 65 20 61 | 75 64 69 6f 20 66 72 6f |trieve a|udio fro|
|00002fb0| 6d 20 51 75 69 63 6b 54 | 69 6d 65 20 66 69 6c 65 |m QuickT|ime file|
|00002fc0| 73 20 69 6e 20 31 2d 73 | 65 63 6f 6e 64 20 63 68 |s in 1-s|econd ch|
|00002fd0| 75 6e 6b 73 3f 20 49 20 | 6e 65 65 64 20 61 20 73 |unks? I |need a s|
|00002fe0| 6f 75 6e 64 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |ound equ|ivalent |
|00002ff0| 6f 66 20 47 65 74 4d 6f | 76 69 65 50 69 63 74 2e |of GetMo|viePict.|
|00003000| 0d 5f 5f 5f 0d 41 3a 20 | 50 75 74 4d 6f 76 69 65 |.___.A: |PutMovie|
|00003010| 49 6e 74 6f 54 79 70 65 | 64 48 61 6e 64 6c 65 20 |IntoType|dHandle |
|00003020| 77 69 6c 6c 20 74 61 6b | 65 20 61 20 6d 6f 76 69 |will tak|e a movi|
|00003030| 65 20 6f 72 20 61 20 73 | 69 6e 67 6c 65 20 74 72 |e or a s|ingle tr|
|00003040| 61 63 6b 20 66 72 6f 6d | 20 77 69 74 68 69 6e 20 |ack from| within |
|00003050| 74 68 65 20 6d 6f 76 69 | 65 20 61 6e 64 20 63 6f |the movi|e and co|
|00003060| 6e 76 65 72 74 20 69 74 | 20 74 6f 20 61 20 68 61 |nvert it| to a ha|
|00003070| 6e 64 6c 65 20 69 6e 20 | 6d 65 6d 6f 72 79 20 6f |ndle in |memory o|
|00003080| 66 20 61 20 73 70 65 63 | 69 66 69 65 64 20 74 79 |f a spec|ified ty|
|00003090| 70 65 2e 20 54 68 69 73 | 20 77 61 79 20 79 6f 75 |pe. This| way you|
|000030a0| 20 63 6f 75 6c 64 20 74 | 61 6b 65 20 74 68 65 20 | could t|ake the |
|000030b0| 73 6f 75 6e 64 20 74 72 | 61 63 6b 20 61 6e 64 20 |sound tr|ack and |
|000030c0| 63 6f 6e 76 65 72 74 20 | 69 74 20 69 6e 74 6f 20 |convert |it into |
|000030d0| 61 20 68 61 6e 64 6c 65 | 2e 0d 68 69 6e 74 73 48 |a handle|..hintsH|
|000030e0| 69 67 68 51 75 61 6c 69 | 74 79 20 46 6c 61 67 0d |ighQuali|ty Flag.|
|000030f0| 68 69 6e 74 73 48 69 67 | 68 51 75 61 6c 69 74 79 |hintsHig|hQuality|
|00003100| 20 69 73 20 61 20 66 6c | 61 67 20 79 6f 75 20 6d | is a fl|ag you m|
|00003110| 61 79 20 70 61 73 73 20 | 74 6f 20 74 68 65 20 53 |ay pass |to the S|
|00003120| 65 74 4d 6f 76 69 65 50 | 6c 61 79 48 69 6e 74 73 |etMovieP|layHints|
|00003130| 20 61 6e 64 20 53 65 74 | 4d 65 64 69 61 50 6c 61 | and Set|MediaPla|
|00003140| 79 48 69 6e 74 73 20 72 | 6f 75 74 69 6e 65 73 2e |yHints r|outines.|
|00003150| 20 49 74 20 73 70 65 63 | 69 66 69 65 73 20 74 68 | It spec|ifies th|
|00003160| 61 74 20 74 68 65 20 67 | 69 76 65 6e 20 6d 6f 76 |at the g|iven mov|
|00003170| 69 65 20 6f 72 20 6d 65 | 64 69 61 20 73 68 6f 75 |ie or me|dia shou|
|00003180| 6c 64 20 72 65 6e 64 65 | 72 20 61 74 20 74 68 65 |ld rende|r at the|
|00003190| 20 68 69 67 68 65 73 74 | 20 71 75 61 6c 69 74 79 | highest| quality|
|000031a0| 2e 20 52 65 6e 64 65 72 | 69 6e 67 20 61 74 20 68 |. Render|ing at h|
|000031b0| 69 67 68 65 73 74 20 71 | 75 61 6c 69 74 79 20 6d |ighest q|uality m|
|000031c0| 61 79 20 74 61 6b 65 20 | 63 6f 6e 73 69 64 65 72 |ay take |consider|
|000031d0| 61 62 6c 79 20 6d 6f 72 | 65 20 74 69 6d 65 20 61 |ably mor|e time a|
|000031e0| 6e 64 20 6d 65 6d 6f 72 | 79 2e 20 54 68 65 72 65 |nd memor|y. There|
|000031f0| 66 6f 72 65 2c 20 74 68 | 69 73 20 6d 6f 64 65 20 |fore, th|is mode |
|00003200| 69 73 20 74 79 70 69 63 | 61 6c 6c 79 20 6e 6f 74 |is typic|ally not|
|00003210| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 66 6f 72 | appropr|iate for|
|00003220| 20 72 65 61 6c 2d 74 69 | 6d 65 20 70 6c 61 79 62 | real-ti|me playb|
|00003230| 61 63 6b 2c 20 62 75 74 | 20 69 73 20 76 65 72 79 |ack, but| is very|
|00003240| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 72 65 2d 63 | useful |for re-c|
|00003250| 6f 6d 70 72 65 73 73 69 | 6e 67 20 61 73 20 69 74 |ompressi|ng as it|
|00003260| 20 63 61 6e 20 67 65 6e | 65 72 61 74 65 20 68 69 | can gen|erate hi|
|00003270| 67 68 65 72 20 71 75 61 | 6c 69 74 79 20 69 6d 61 |gher qua|lity ima|
|00003280| 67 65 73 2e 0d 68 69 6e | 74 73 48 69 67 68 51 75 |ges..hin|tsHighQu|
|00003290| 61 6c 69 74 79 20 3d 20 | 31 3c 3c 38 0d 54 68 65 |ality = |1<<8.The|
|000032a0| 20 68 69 67 68 2d 71 75 | 61 6c 69 74 79 20 6d 6f | high-qu|ality mo|
|000032b0| 64 65 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 77 |de can b|e used w|
|000032c0| 69 74 68 20 6f 74 68 65 | 72 20 6d 65 64 69 61 20 |ith othe|r media |
|000032d0| 68 61 6e 64 6c 65 72 73 | 20 61 73 20 77 65 6c 6c |handlers| as well|
|000032e0| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 |. For ex|ample, t|
|000032f0| 68 65 20 56 69 64 65 6f | 20 4d 65 64 69 61 20 48 |he Video| Media H|
|00003300| 61 6e 64 6c 65 72 20 74 | 75 72 6e 73 20 6f 66 66 |andler t|urns off|
|00003310| 20 66 61 73 74 20 64 69 | 74 68 65 72 69 6e 67 20 | fast di|thering |
|00003320| 61 6e 64 20 61 6c 6c 6f | 77 73 20 68 69 67 68 2d |and allo|ws high-|
|00003330| 71 75 61 6c 69 74 79 20 | 64 69 74 68 65 72 69 6e |quality |ditherin|
|00003340| 67 2e 20 0d 51 75 69 63 | 6b 54 69 6d 65 20 43 46 |g. .Quic|kTime CF|
|00003350| 4d 20 50 6f 77 65 72 50 | 6c 75 67 20 4c 69 62 72 |M PowerP|lug Libr|
|00003360| 61 72 69 65 73 2c 20 41 | 76 61 69 6c 61 62 69 6c |aries, A|vailabil|
|00003370| 69 74 79 2c 20 57 65 61 | 6b 20 4c 69 6e 6b 73 0d |ity, Wea|k Links.|
|00003380| 54 68 65 20 43 6f 64 65 | 20 46 72 61 67 6d 65 6e |The Code| Fragmen|
|00003390| 74 20 4d 61 6e 61 67 65 | 72 20 73 75 70 70 6f 72 |t Manage|r suppor|
|000033a0| 74 73 20 74 68 65 20 63 | 6f 6e 63 65 70 74 20 6f |ts the c|oncept o|
|000033b0| 66 20 22 73 6f 66 74 22 | 20 6f 72 20 22 77 65 61 |f "soft"| or "wea|
|000033c0| 6b 22 20 6c 69 6e 6b 69 | 6e 67 2e 20 49 66 20 61 |k" linki|ng. If a|
|000033d0| 20 6c 69 62 72 61 72 79 | 20 69 73 20 73 6f 66 74 | library| is soft|
|000033e0| 20 6c 69 6e 6b 65 64 2c | 20 74 68 65 6e 20 74 68 | linked,| then th|
|000033f0| 65 20 50 72 6f 63 65 73 | 73 20 4d 61 6e 61 67 65 |e Proces|s Manage|
|00003400| 72 20 77 69 6c 6c 20 67 | 6f 20 61 68 65 61 64 20 |r will g|o ahead |
|00003410| 61 6e 64 20 72 75 6e 20 | 79 6f 75 72 20 61 70 70 |and run |your app|
|00003420| 6c 69 63 61 74 69 6f 6e | 20 65 76 65 6e 20 69 66 |lication| even if|
|00003430| 20 74 68 65 20 6c 69 62 | 72 61 72 79 20 69 73 20 | the lib|rary is |
|00003440| 6d 69 73 73 69 6e 67 2e | 20 54 68 69 73 20 6d 65 |missing.| This me|
|00003450| 61 6e 73 20 74 68 61 74 | 20 74 68 65 20 61 70 70 |ans that| the app|
|00003460| 6c 69 63 61 74 69 6f 6e | 20 77 69 6c 6c 20 6e 6f |lication| will no|
|00003470| 74 20 64 69 65 20 65 76 | 65 6e 20 69 66 20 61 20 |t die ev|en if a |
|00003480| 70 61 72 74 69 63 75 6c | 61 72 20 6c 69 62 72 61 |particul|ar libra|
|00003490| 72 79 20 69 73 20 6e 6f | 74 20 69 6e 73 74 61 6c |ry is no|t instal|
|000034a0| 6c 65 64 2c 20 61 6e 64 | 20 74 68 65 20 61 70 70 |led, and| the app|
|000034b0| 6c 69 63 61 74 69 6f 6e | 20 63 6f 75 6c 64 20 64 |lication| could d|
|000034c0| 69 73 61 62 6c 65 20 66 | 75 6e 63 74 69 6f 6e 61 |isable f|unctiona|
|000034d0| 6c 69 74 79 20 62 61 73 | 65 64 20 6f 6e 20 77 68 |lity bas|ed on wh|
|000034e0| 61 74 20 6c 69 62 72 61 | 72 69 65 73 20 61 72 65 |at libra|ries are|
|000034f0| 20 61 76 61 69 6c 61 62 | 6c 65 20 6f 72 20 6e 6f | availab|le or no|
|00003500| 74 2e 0d 4d 50 57 20 50 | 6f 77 65 72 50 43 20 74 |t..MPW P|owerPC t|
|00003510| 6f 6f 6c 73 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |ools inc|lude the|
|00003520| 20 4d 61 6b 65 50 45 46 | 20 74 6f 6f 6c 20 77 69 | MakePEF| tool wi|
|00003530| 74 68 20 61 6e 20 61 64 | 64 69 74 69 6f 6e 61 6c |th an ad|ditional|
|00003540| 20 66 6c 61 67 20 74 68 | 61 74 20 73 70 65 63 69 | flag th|at speci|
|00003550| 66 69 65 73 20 74 68 61 | 74 20 74 68 65 20 65 78 |fies tha|t the ex|
|00003560| 70 6f 72 74 65 64 20 73 | 79 6d 62 6f 6c 73 20 61 |ported s|ymbols a|
|00003570| 72 65 20 77 65 61 6b 2e | 20 49 6e 20 74 68 69 73 |re weak.| In this|
|00003580| 20 63 61 73 65 20 74 68 | 65 20 72 75 6e 74 69 6d | case th|e runtim|
|00003590| 65 20 61 72 63 68 69 74 | 65 63 74 75 72 65 20 77 |e archit|ecture w|
|000035a0| 69 6c 6c 20 74 72 79 20 | 74 6f 20 72 65 73 6f 6c |ill try |to resol|
|000035b0| 76 65 20 74 68 65 20 43 | 46 4d 20 6c 69 62 72 61 |ve the C|FM libra|
|000035c0| 72 79 2c 20 62 75 74 20 | 77 6f 6e 27 74 20 66 61 |ry, but |won't fa|
|000035d0| 69 6c 20 69 66 20 69 74 | 20 63 61 6e 27 74 2e 20 |il if it| can't. |
|000035e0| 59 6f 75 20 63 61 6e 20 | 64 65 66 69 6e 65 20 74 |You can |define t|
|000035f0| 68 61 74 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 |hat the |library |
|00003600| 68 61 73 20 77 65 61 6b | 20 6c 69 6e 6b 69 6e 67 |has weak| linking|
|00003610| 20 62 79 20 61 64 64 69 | 6e 67 20 61 20 6d 61 67 | by addi|ng a mag|
|00003620| 69 63 20 74 69 6c 64 65 | 20 28 7e 29 20 63 68 61 |ic tilde| (~) cha|
|00003630| 72 61 63 74 65 72 20 61 | 74 20 74 68 65 20 65 6e |racter a|t the en|
|00003640| 64 20 6f 66 20 74 68 65 | 20 2d 6c 20 6f 70 74 69 |d of the| -l opti|
|00003650| 6f 6e 20 74 6f 20 4d 61 | 6b 65 50 45 46 2e 20 46 |on to Ma|kePEF. F|
|00003660| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 6f 20 73 |or examp|le, to s|
|00003670| 6f 66 74 20 6c 69 6e 6b | 20 74 6f 20 51 75 69 63 |oft link| to Quic|
|00003680| 6b 54 69 6d 65 4c 69 62 | 20 79 6f 75 20 77 6f 75 |kTimeLib| you wou|
|00003690| 6c 64 20 64 6f 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ld do th|e follow|
|000036a0| 69 6e 67 3a 0d 09 4d 61 | 6b 65 50 45 46 20 2d 6c |ing:..Ma|kePEF -l|
|000036b0| 20 51 75 69 63 6b 54 69 | 6d 65 4c 69 62 2e 78 63 | QuickTi|meLib.xc|
|000036c0| 6f 66 66 3d 51 75 69 63 | 6b 54 69 6d 65 4c 69 62 |off=Quic|kTimeLib|
|000036d0| 7e 20 2e 2e 2e 0d 59 6f | 75 20 63 6f 75 6c 64 20 |~ ....Yo|u could |
|000036e0| 61 6c 73 6f 20 6d 61 72 | 6b 20 43 46 4d 20 6c 69 |also mar|k CFM li|
|000036f0| 62 72 61 72 69 65 73 20 | 61 73 20 77 65 61 6b 20 |braries |as weak |
|00003700| 75 73 69 6e 67 20 74 68 | 65 20 4d 65 74 72 6f 77 |using th|e Metrow|
|00003710| 65 72 6b 73 20 50 6f 77 | 65 72 50 43 20 65 6e 76 |erks Pow|erPC env|
|00003720| 69 72 6f 6e 6d 65 6e 74 | 2e 0d 49 6e 20 74 68 65 |ironment|..In the|
|00003730| 20 63 6c 69 65 6e 74 20 | 70 72 6f 67 72 61 6d 20 | client |program |
|00003740| 79 6f 75 20 63 61 6e 20 | 74 65 73 74 20 74 68 61 |you can |test tha|
|00003750| 74 20 74 68 65 20 43 46 | 4d 20 6c 69 62 72 61 72 |t the CF|M librar|
|00003760| 79 20 77 61 73 20 6e 6f | 74 20 6c 6f 61 64 65 64 |y was no|t loaded|
|00003770| 20 61 6e 64 20 66 6f 72 | 20 69 6e 73 74 61 6e 63 | and for| instanc|
|00003780| 65 20 64 69 73 61 62 6c | 65 20 61 6c 6c 20 66 75 |e disabl|e all fu|
|00003790| 6e 63 74 69 6f 6e 61 6c | 69 74 79 20 74 68 61 74 |nctional|ity that|
|000037a0| 20 64 65 70 65 6e 64 73 | 20 6f 6e 20 74 68 65 20 | depends| on the |
|000037b0| 43 46 4d 20 6c 69 62 72 | 61 72 79 20 28 66 6f 72 |CFM libr|ary (for|
|000037c0| 20 65 78 61 6d 70 6c 65 | 2c 20 6e 6f 20 51 75 69 | example|, no Qui|
|000037d0| 63 6b 54 69 6d 65 20 43 | 46 4d 20 6c 69 62 72 61 |ckTime C|FM libra|
|000037e0| 72 69 65 73 20 70 72 65 | 73 65 6e 74 20 73 6f 20 |ries pre|sent so |
|000037f0| 22 70 6c 61 79 20 6d 6f | 76 69 65 73 22 20 67 65 |"play mo|vies" ge|
|00003800| 74 73 20 64 69 73 61 62 | 6c 65 64 29 2e 0d 53 69 |ts disab|led)..Si|
|00003810| 6e 63 65 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 |nce the |library |
|00003820| 6f 6e 6c 79 20 72 65 67 | 69 73 74 65 72 73 20 69 |only reg|isters i|
|00003830| 74 73 65 6c 66 20 77 69 | 74 68 20 47 65 73 74 61 |tself wi|th Gesta|
|00003840| 6c 74 20 6f 6e 63 65 2c | 20 74 68 65 72 65 27 73 |lt once,| there's|
|00003850| 20 6e 6f 20 77 61 79 20 | 74 6f 20 75 6e 72 65 67 | no way |to unreg|
|00003860| 69 73 74 65 72 20 69 74 | 20 69 66 20 74 68 65 20 |ister it| if the |
|00003870| 75 73 65 72 20 6d 6f 76 | 65 73 20 74 68 65 20 6c |user mov|es the l|
|00003880| 69 62 72 61 72 79 2e 20 | 20 54 68 69 73 20 70 61 |ibrary. | This pa|
|00003890| 72 74 69 63 75 6c 61 72 | 20 70 72 6f 62 6c 65 6d |rticular| problem|
|000038a0| 20 64 6f 65 73 20 6e 6f | 74 20 68 61 76 65 20 61 | does no|t have a|
|000038b0| 6e 79 20 64 69 72 65 63 | 74 20 73 6f 6c 75 74 69 |ny direc|t soluti|
|000038c0| 6f 6e 73 2c 20 62 75 74 | 20 74 68 65 72 65 27 73 |ons, but| there's|
|000038d0| 20 61 6e 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 | an alte|rnative |
|000038e0| 77 61 79 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |way to d|etermine|
|000038f0| 20 69 66 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 | if the |library |
|00003900| 69 73 20 6c 6f 61 64 65 | 64 2e 0d 54 68 65 20 73 |is loade|d..The s|
|00003910| 6f 6c 75 74 69 6f 6e 20 | 69 73 20 74 6f 20 63 68 |olution |is to ch|
|00003920| 65 63 6b 20 74 68 65 20 | 61 64 64 72 65 73 73 20 |eck the |address |
|00003930| 6f 66 20 6f 6e 65 20 6f | 66 20 74 68 65 20 66 75 |of one o|f the fu|
|00003940| 6e 63 74 69 6f 6e 73 20 | 69 6e 20 74 68 65 20 6c |nctions |in the l|
|00003950| 69 62 72 61 72 79 20 62 | 65 66 6f 72 65 20 63 61 |ibrary b|efore ca|
|00003960| 6c 6c 69 6e 67 20 74 68 | 65 20 6c 69 62 72 61 72 |lling th|e librar|
|00003970| 79 2e 20 20 54 68 65 20 | 50 6f 77 65 72 50 43 20 |y. The |PowerPC |
|00003980| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00003990| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 69 | documen|tation i|
|000039a0| 6c 6c 75 73 74 72 61 74 | 65 73 20 74 68 65 20 74 |llustrat|es the t|
|000039b0| 65 63 68 6e 69 71 75 65 | 3a 0d 65 78 74 65 72 6e |echnique|:.extern|
|000039c0| 20 69 6e 74 20 70 72 69 | 6e 74 66 20 28 63 68 61 | int pri|ntf (cha|
|000039d0| 72 20 2a 2c 20 2e 2e 2e | 29 3b 20 0d 2f 2f 20 2e |r *, ...|); .// .|
|000039e0| 2e 2e 20 0d 69 66 20 28 | 70 72 69 6e 74 66 20 3d |.. .if (|printf =|
|000039f0| 3d 20 6b 55 6e 72 65 73 | 6f 6c 76 65 64 53 79 6d |= kUnres|olvedSym|
|00003a00| 62 6f 6c 41 64 64 72 65 | 73 73 29 20 0d 20 20 20 |bolAddre|ss) . |
|00003a10| 20 20 20 20 20 44 65 62 | 75 67 53 74 72 28 22 5c | Deb|ugStr("\|
|00003a20| 70 72 69 6e 74 66 20 69 | 73 20 6e 6f 74 20 61 76 |printf i|s not av|
|00003a30| 61 69 6c 61 62 6c 65 2e | 22 29 3b 20 0d 65 6c 73 |ailable.|"); .els|
|00003a40| 65 0d 09 70 72 69 6e 74 | 66 28 22 48 65 6c 6c 6f |e..print|f("Hello|
|00003a50| 2c 20 77 6f 72 6c 64 21 | 5c 6e 22 29 3b 0d 51 75 |, world!|\n");.Qu|
|00003a60| 69 63 6b 54 69 6d 65 20 | 68 61 73 20 61 20 6e 65 |ickTime |has a ne|
|00003a70| 77 20 47 65 73 74 61 6c | 74 20 73 65 6c 65 63 74 |w Gestal|t select|
|00003a80| 6f 72 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |or to de|termine |
|00003a90| 77 68 65 74 68 65 72 20 | 69 74 27 73 20 73 61 66 |whether |it's saf|
|00003aa0| 65 20 74 6f 20 63 61 6c | 6c 20 74 68 65 20 77 65 |e to cal|l the we|
|00003ab0| 61 6b 2d 6c 69 6e 6b 65 | 64 20 6c 69 62 72 61 72 |ak-linke|d librar|
|00003ac0| 79 20 28 67 65 73 74 61 | 6c 74 51 75 69 63 6b 54 |y (gesta|ltQuickT|
|00003ad0| 69 6d 65 46 65 61 74 75 | 72 65 73 29 2e 20 54 68 |imeFeatu|res). Th|
|00003ae0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 73 68 6f 77 |is funct|ion show|
|00003af0| 73 20 68 6f 77 20 74 6f | 20 20 69 6e 69 74 69 61 |s how to| initia|
|00003b00| 6c 69 7a 65 20 51 75 69 | 63 6b 54 69 6d 65 2c 20 |lize Qui|ckTime, |
|00003b10| 66 6f 72 20 36 38 6b 20 | 61 6e 64 20 50 6f 77 65 |for 68k |and Powe|
|00003b20| 72 50 43 3a 0d 42 6f 6f | 6c 65 61 6e 20 20 20 20 |rPC:.Boo|lean |
|00003b30| 49 6e 69 74 51 75 69 63 | 6b 54 69 6d 65 28 76 6f |InitQuic|kTime(vo|
|00003b40| 69 64 29 20 0d 7b 0d 09 | 6c 6f 6e 67 20 09 09 71 |id) .{..|long ..q|
|00003b50| 74 56 65 72 73 69 6f 6e | 3b 0d 09 4f 53 45 72 72 |tVersion|;..OSErr|
|00003b60| 20 09 09 61 6e 45 72 72 | 3b 0d 23 69 66 64 65 66 | ..anErr|;.#ifdef|
|00003b70| 20 70 6f 77 65 72 63 0d | 09 6c 6f 6e 67 20 09 09 | powerc.|.long ..|
|00003b80| 71 74 46 65 61 74 75 72 | 65 73 3b 20 0d 23 65 6e |qtFeatur|es; .#en|
|00003b90| 64 69 66 0d 09 61 6e 45 | 72 72 20 3d 20 47 65 73 |dif..anE|rr = Ges|
|00003ba0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 51 75 69 63 |talt(ges|taltQuic|
|00003bb0| 6b 54 69 6d 65 2c 20 26 | 71 74 56 65 72 73 69 6f |kTime, &|qtVersio|
|00003bc0| 6e 29 3b 0d 09 69 66 20 | 28 61 6e 45 72 72 20 21 |n);..if |(anErr !|
|00003bd0| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 72 65 74 75 72 |= noErr)|...retur|
|00003be0| 6e 20 66 61 6c 73 65 3b | 09 09 2f 2f 20 6e 6f 20 |n false;|..// no |
|00003bf0| 51 54 20 70 72 65 73 65 | 6e 74 0d 23 69 66 64 65 |QT prese|nt.#ifde|
|00003c00| 66 20 70 6f 77 65 72 63 | 20 0d 2f 2f 20 54 65 73 |f powerc| .// Tes|
|00003c10| 74 20 69 66 20 74 68 65 | 20 6c 69 62 72 61 72 79 |t if the| library|
|00003c20| 20 69 73 20 72 65 67 69 | 73 74 65 72 65 64 2e 0d | is regi|stered..|
|00003c30| 09 61 6e 45 72 72 20 3d | 20 47 65 73 74 61 6c 74 |.anErr =| Gestalt|
|00003c40| 28 67 65 73 74 61 6c 74 | 51 75 69 63 6b 54 69 6d |(gestalt|QuickTim|
|00003c50| 65 46 65 61 74 75 72 65 | 73 2c 20 26 71 74 46 65 |eFeature|s, &qtFe|
|00003c60| 61 74 75 72 65 73 29 3b | 0d 20 20 20 20 69 66 20 |atures);|. if |
|00003c70| 28 20 21 28 20 28 61 6e | 45 72 72 20 3d 3d 20 6e |( !( (an|Err == n|
|00003c80| 6f 45 72 72 29 20 20 26 | 26 20 20 28 71 74 46 65 |oErr) &|& (qtFe|
|00003c90| 61 74 75 72 65 73 20 26 | 20 28 31 20 3c 3c 20 67 |atures &| (1 << g|
|00003ca0| 65 73 74 61 6c 74 50 50 | 43 51 75 69 63 6b 54 69 |estaltPP|CQuickTi|
|00003cb0| 6d 65 4c 69 62 50 72 65 | 73 65 6e 74 29 29 20 20 |meLibPre|sent)) |
|00003cc0| 09 20 29 29 20 2f 2f 20 | 6e 6f 74 20 74 72 75 65 |. )) // |not true|
|00003cd0| 0d 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |. | retur|
|00003ce0| 6e 20 66 61 6c 73 65 3b | 0d 23 65 6e 64 69 66 20 |n false;|.#endif |
|00003cf0| 0d 09 0d 09 61 6e 45 72 | 72 20 3d 20 45 6e 74 65 |....anEr|r = Ente|
|00003d00| 72 4d 6f 76 69 65 73 28 | 29 3b 0d 09 69 66 20 28 |rMovies(|);..if (|
|00003d10| 20 61 6e 45 72 72 20 3d | 3d 20 6e 6f 45 72 72 29 | anErr =|= noErr)|
|00003d20| 0d 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00003d30| 09 65 6c 73 65 0d 09 09 | 72 65 74 75 72 6e 20 66 |.else...|return f|
|00003d40| 61 6c 73 65 3b 09 09 2f | 2f 20 70 72 6f 62 6c 65 |alse;../|/ proble|
|00003d50| 6d 73 20 69 6e 69 74 69 | 61 6c 69 7a 69 6e 67 20 |ms initi|alizing |
|00003d60| 51 75 69 63 6b 54 69 6d | 65 0d 7d 0d 42 6f 74 68 |QuickTim|e.}.Both|
|00003d70| 20 51 75 69 63 6b 54 69 | 6d 65 20 47 65 73 74 61 | QuickTi|me Gesta|
|00003d80| 6c 74 20 73 65 6c 65 63 | 74 6f 72 73 20 61 72 65 |lt selec|tors are|
|00003d90| 20 62 65 69 6e 67 20 74 | 65 73 74 65 64 20 66 6f | being t|ested fo|
|00003da0| 72 20 69 6e 20 74 68 65 | 20 50 6f 77 65 72 50 43 |r in the| PowerPC|
|00003db0| 20 63 61 73 65 2e 20 59 | 6f 75 20 6e 65 65 64 20 | case. Y|ou need |
|00003dc0| 74 6f 20 74 65 73 74 20 | 62 6f 74 68 20 74 68 61 |to test |both tha|
|00003dd0| 74 20 51 75 69 63 6b 54 | 69 6d 65 20 69 73 20 70 |t QuickT|ime is p|
|00003de0| 72 65 73 65 6e 74 20 61 | 6e 64 20 74 68 61 74 20 |resent a|nd that |
|00003df0| 74 68 65 20 51 75 69 63 | 6b 54 69 6d 65 20 6c 69 |the Quic|kTime li|
|00003e00| 62 72 61 72 79 20 69 73 | 20 70 72 65 73 65 6e 74 |brary is| present|
|00003e10| 2e 0d 41 20 73 69 6d 70 | 6c 65 20 74 65 73 74 20 |..A simp|le test |
|00003e20| 74 6f 20 76 65 72 69 66 | 79 20 74 68 61 74 20 74 |to verif|y that t|
|00003e30| 68 69 6e 67 73 20 77 6f | 72 6b 20 70 72 6f 70 65 |hings wo|rk prope|
|00003e40| 72 6c 79 20 69 73 20 74 | 6f 20 65 78 63 6c 75 64 |rly is t|o exclud|
|00003e50| 65 20 74 68 65 20 50 6f | 77 65 72 50 6c 75 67 20 |e the Po|werPlug |
|00003e60| 43 46 4d 20 6c 69 62 72 | 61 72 79 20 66 72 6f 6d |CFM libr|ary from|
|00003e70| 20 74 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 66 | the ext|ension f|
|00003e80| 69 6c 65 2c 20 6f 72 20 | 6d 6f 76 65 20 69 74 20 |ile, or |move it |
|00003e90| 6f 75 74 20 66 72 6f 6d | 20 74 68 65 20 66 6f 6c |out from| the fol|
|00003ea0| 64 65 72 20 77 68 69 6c | 65 20 74 68 65 20 61 70 |der whil|e the ap|
|00003eb0| 70 6c 69 63 61 74 69 6f | 6e 20 74 68 61 74 20 6e |plicatio|n that n|
|00003ec0| 65 65 64 73 20 74 68 65 | 20 6c 69 62 72 61 72 79 |eeds the| library|
|00003ed0| 20 69 73 20 72 75 6e 6e | 69 6e 67 2e 0d 49 66 20 | is runn|ing..If |
|00003ee0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00003ef0| 69 73 20 75 6e 61 62 6c | 65 20 74 6f 20 6c 6f 61 |is unabl|e to loa|
|00003f00| 64 20 74 68 65 20 43 46 | 4d 20 6c 69 62 72 61 72 |d the CF|M librar|
|00003f10| 79 20 64 75 65 20 74 6f | 20 6c 61 63 6b 20 6f 66 |y due to| lack of|
|00003f20| 20 73 70 61 63 65 2c 20 | 74 68 65 20 61 70 70 6c | space, |the appl|
|00003f30| 69 63 61 74 69 6f 6e 20 | 6d 69 67 68 74 20 6d 79 |ication |might my|
|00003f40| 73 74 65 72 69 6f 75 73 | 6c 79 20 64 69 65 20 6c |sterious|ly die l|
|00003f50| 61 74 65 72 2c 20 73 6f | 20 69 74 27 73 20 69 6d |ater, so| it's im|
|00003f60| 70 6f 72 74 61 6e 74 20 | 74 6f 20 61 6c 77 61 79 |portant |to alway|
|00003f70| 73 20 63 68 65 63 6b 20 | 74 68 61 74 20 74 68 65 |s check |that the|
|00003f80| 20 6c 69 62 72 61 72 69 | 65 73 20 61 72 65 20 6c | librari|es are l|
|00003f90| 6f 61 64 65 64 20 61 6e | 64 20 61 76 61 69 6c 61 |oaded an|d availa|
|00003fa0| 62 6c 65 2e 0d 50 72 65 | 72 6f 6c 6c 20 4d 6f 76 |ble..Pre|roll Mov|
|00003fb0| 69 65 73 0d 49 74 20 69 | 73 20 6f 66 20 75 74 6d |ies.It i|s of utm|
|00003fc0| 6f 73 74 20 69 6d 70 6f | 72 74 61 6e 63 65 20 74 |ost impo|rtance t|
|00003fd0| 68 61 74 20 79 6f 75 20 | 70 72 65 72 6f 6c 6c 20 |hat you |preroll |
|00003fe0| 79 6f 75 72 20 6d 6f 76 | 69 65 73 20 75 73 69 6e |your mov|ies usin|
|00003ff0| 67 20 74 68 65 20 50 72 | 65 72 6f 6c 6c 4d 6f 76 |g the Pr|erollMov|
|00004000| 69 65 20 63 61 6c 6c 2e | 20 46 61 69 6c 69 6e 67 |ie call.| Failing|
|00004010| 20 74 6f 20 64 6f 20 73 | 6f 20 77 69 6c 6c 20 69 | to do s|o will i|
|00004020| 6e 74 72 6f 64 75 63 65 | 20 70 6c 61 79 62 61 63 |ntroduce| playbac|
|00004030| 6b 20 70 72 6f 62 6c 65 | 6d 73 2c 20 65 73 70 65 |k proble|ms, espe|
|00004040| 63 69 61 6c 6c 79 20 77 | 68 65 6e 20 74 68 65 20 |cially w|hen the |
|00004050| 6d 6f 76 69 65 20 73 74 | 61 72 74 73 2e 20 50 72 |movie st|arts. Pr|
|00004060| 65 72 6f 6c 6c 4d 6f 76 | 69 65 20 77 69 6c 6c 20 |erollMov|ie will |
|00004070| 66 69 6c 6c 20 63 61 63 | 68 65 73 20 61 6e 64 20 |fill cac|hes and |
|00004080| 62 75 66 66 65 72 73 20 | 6f 70 74 69 6d 61 6c 6c |buffers |optimall|
|00004090| 79 20 74 6f 20 70 72 65 | 76 65 6e 74 20 69 6e 69 |y to pre|vent ini|
|000040a0| 74 69 61 6c 20 70 6c 61 | 79 62 61 63 6b 20 73 74 |tial pla|yback st|
|000040b0| 75 74 74 65 72 69 6e 67 | 2e 0d 4e 6f 74 65 20 74 |uttering|..Note t|
|000040c0| 68 61 74 20 53 74 61 72 | 74 4d 6f 76 69 65 20 77 |hat Star|tMovie w|
|000040d0| 69 6c 6c 20 70 72 65 72 | 6f 6c 6c 20 74 68 65 20 |ill prer|oll the |
|000040e0| 6d 6f 76 69 65 3b 20 61 | 6c 73 6f 2c 20 74 68 65 |movie; a|lso, the|
|000040f0| 20 73 74 61 6e 64 61 72 | 64 20 63 6f 6e 74 72 6f | standar|d contro|
|00004100| 6c 6c 65 72 20 70 72 65 | 72 6f 6c 6c 73 20 74 68 |ller pre|rolls th|
|00004110| 65 20 6d 6f 76 69 65 20 | 77 68 65 6e 65 76 65 72 |e movie |whenever|
|00004120| 20 74 68 65 20 75 73 65 | 72 20 73 74 61 72 74 73 | the use|r starts|
|00004130| 20 61 20 6d 6f 76 69 65 | 20 75 73 69 6e 67 20 74 | a movie| using t|
|00004140| 68 65 20 6b 65 79 62 6f | 61 72 64 20 6f 72 20 74 |he keybo|ard or t|
|00004150| 68 65 20 6d 6f 75 73 65 | 2e 20 49 6e 20 74 68 65 |he mouse|. In the|
|00004160| 73 65 20 73 69 74 75 61 | 74 69 6f 6e 73 2c 20 61 |se situa|tions, a|
|00004170| 20 70 6f 73 73 69 62 6c | 65 20 73 65 63 6f 6e 64 | possibl|e second|
|00004180| 20 50 72 65 72 6f 6c 6c | 4d 6f 76 69 65 20 63 61 | Preroll|Movie ca|
|00004190| 6c 6c 20 20 69 73 20 72 | 65 64 75 6e 64 61 6e 74 |ll is r|edundant|
|000041a0| 20 61 6e 64 20 77 69 6c | 6c 20 77 61 73 74 65 20 | and wil|l waste |
|000041b0| 74 69 6d 65 20 61 6e 64 | 20 72 65 73 6f 75 72 63 |time and| resourc|
|000041c0| 65 73 2e 0d 49 6e 20 61 | 6c 6c 20 6f 74 68 65 72 |es..In a|ll other|
|000041d0| 20 63 61 73 65 73 2c 20 | 79 6f 75 20 73 68 6f 75 | cases, |you shou|
|000041e0| 6c 64 20 70 72 65 72 6f | 6c 6c 20 74 68 65 20 6d |ld prero|ll the m|
|000041f0| 6f 76 69 65 2e 20 46 6f | 72 20 69 6e 73 74 61 6e |ovie. Fo|r instan|
|00004200| 63 65 2c 20 69 74 20 69 | 73 20 79 6f 75 72 20 72 |ce, it i|s your r|
|00004210| 65 73 70 6f 6e 73 69 62 | 69 6c 69 74 79 20 74 6f |esponsib|ility to|
|00004220| 20 63 61 6c 6c 20 50 72 | 65 72 6f 6c 6c 4d 6f 76 | call Pr|erollMov|
|00004230| 69 65 20 69 66 20 79 6f | 75 20 61 72 65 20 75 73 |ie if yo|u are us|
|00004240| 69 6e 67 20 53 65 74 4d | 6f 76 69 65 52 61 74 65 |ing SetM|ovieRate|
|00004250| 2c 20 6f 72 20 69 66 20 | 79 6f 75 20 75 73 65 20 |, or if |you use |
|00004260| 4d 63 44 6f 41 63 74 69 | 6f 6e 20 77 69 74 68 20 |McDoActi|on with |
|00004270| 6d 63 41 63 74 69 6f 6e | 50 6c 61 79 20 61 6e 64 |mcAction|Play and|
|00004280| 20 61 20 72 61 74 65 2e | 20 48 65 72 65 27 73 20 | a rate.| Here's |
|00004290| 61 6e 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 68 6f |an examp|le of ho|
|000042a0| 77 20 74 6f 20 75 73 65 | 20 50 72 65 72 6f 6c 6c |w to use| Preroll|
|000042b0| 4d 6f 76 69 65 3a 0d 4f | 53 45 72 72 20 44 6f 50 |Movie:.O|SErr DoP|
|000042c0| 72 65 72 6f 6c 6c 4d 6f | 76 69 65 28 4d 6f 76 69 |rerollMo|vie(Movi|
|000042d0| 65 09 74 68 65 4d 6f 76 | 69 65 29 20 0d 7b 0d 09 |e.theMov|ie) .{..|
|000042e0| 54 69 6d 65 56 61 6c 75 | 65 20 09 09 61 54 69 6d |TimeValu|e ..aTim|
|000042f0| 65 56 61 6c 75 65 3b 0d | 09 54 69 6d 65 56 61 6c |eValue;.|.TimeVal|
|00004300| 75 65 20 09 09 61 4d 6f | 76 69 65 44 75 72 3b 0d |ue ..aMo|vieDur;.|
|00004310| 09 46 69 78 65 64 20 09 | 09 09 61 50 72 65 66 65 |.Fixed .|..aPrefe|
|00004320| 72 72 65 64 52 61 74 65 | 3b 0d 09 4f 53 45 72 72 |rredRate|;..OSErr|
|00004330| 09 09 09 61 6e 45 72 72 | 20 3d 20 6e 6f 45 72 72 |...anErr| = noErr|
|00004340| 3b 0d 09 61 54 69 6d 65 | 56 61 6c 75 65 20 09 3d |;..aTime|Value .=|
|00004350| 20 47 65 74 4d 6f 76 69 | 65 54 69 6d 65 28 74 68 | GetMovi|eTime(th|
|00004360| 65 4d 6f 76 69 65 2c 20 | 6e 69 6c 29 3b 0d 09 61 |eMovie, |nil);..a|
|00004370| 4d 6f 76 69 65 44 75 72 | 09 3d 20 47 65 74 4d 6f |MovieDur|.= GetMo|
|00004380| 76 69 65 44 75 72 61 74 | 69 6f 6e 28 74 68 65 4d |vieDurat|ion(theM|
|00004390| 6f 76 69 65 29 3b 0d 09 | 61 50 72 65 66 65 72 72 |ovie);..|aPreferr|
|000043a0| 65 64 52 61 74 65 20 3d | 20 47 65 74 4d 6f 76 69 |edRate =| GetMovi|
|000043b0| 65 50 72 65 66 65 72 72 | 65 64 52 61 74 65 28 74 |ePreferr|edRate(t|
|000043c0| 68 65 4d 6f 76 69 65 29 | 3b 0d 09 61 6e 45 72 72 |heMovie)|;..anErr|
|000043d0| 20 3d 20 50 72 65 72 6f | 6c 6c 4d 6f 76 69 65 28 | = Prero|llMovie(|
|000043e0| 74 68 65 4d 6f 76 69 65 | 2c 20 61 54 69 6d 65 56 |theMovie|, aTimeV|
|000043f0| 61 6c 75 65 2c 20 61 50 | 72 65 66 65 72 72 65 64 |alue, aP|referred|
|00004400| 52 61 74 65 29 3b 0d 09 | 72 65 74 75 72 6e 20 61 |Rate);..|return a|
|00004410| 6e 45 72 72 3b 0d 7d 0d | 43 75 73 74 6f 6d 47 65 |nErr;.}.|CustomGe|
|00004420| 74 46 69 6c 65 50 72 65 | 76 69 65 77 20 50 72 6f |tFilePre|view Pro|
|00004430| 62 6c 65 6d 20 2d 20 4d | 69 73 73 69 6e 67 20 27 |blem - M|issing '|
|00004440| 64 63 74 62 27 0d 54 68 | 65 20 73 79 73 74 65 6d |dctb'.Th|e system|
|00004450| 27 73 20 70 6f 70 2d 75 | 70 20 43 44 45 46 20 68 |'s pop-u|p CDEF h|
|00004460| 61 73 20 61 20 70 72 6f | 62 6c 65 6d 20 74 68 61 |as a pro|blem tha|
|00004470| 74 20 69 73 20 73 68 6f | 72 74 2d 63 69 72 63 75 |t is sho|rt-circu|
|00004480| 69 74 65 64 20 69 66 20 | 61 20 27 64 63 74 62 27 |ited if |a 'dctb'|
|00004490| 20 69 73 20 70 72 65 73 | 65 6e 74 2e 20 54 68 65 | is pres|ent. The|
|000044a0| 20 70 6f 70 75 70 20 6d | 65 6e 75 20 69 6e 20 74 | popup m|enu in t|
|000044b0| 68 65 20 64 69 61 6c 6f | 67 20 74 68 61 74 20 77 |he dialo|g that w|
|000044c0| 69 6c 6c 20 6e 61 76 69 | 67 61 74 65 20 74 68 72 |ill navi|gate thr|
|000044d0| 6f 75 67 68 20 66 6f 6c | 64 65 72 73 20 69 73 20 |ough fol|ders is |
|000044e0| 6d 69 73 2d 70 6f 73 69 | 74 69 6f 6e 65 64 20 66 |mis-posi|tioned f|
|000044f0| 61 72 20 74 6f 20 74 68 | 65 20 72 69 67 68 74 20 |ar to th|e right |
|00004500| 69 66 20 79 6f 75 20 75 | 73 65 20 43 75 73 74 6f |if you u|se Custo|
|00004510| 6d 47 65 74 46 69 6c 65 | 50 72 65 76 69 65 77 20 |mGetFile|Preview |
|00004520| 77 68 65 6e 20 74 68 65 | 20 22 53 68 6f 77 20 50 |when the| "Show P|
|00004530| 72 65 76 69 65 77 22 20 | 63 68 65 63 6b 20 62 6f |review" |check bo|
|00004540| 78 20 69 73 20 75 6e 63 | 68 65 63 6b 65 64 2e 20 |x is unc|hecked. |
|00004550| 54 68 69 73 20 68 61 70 | 70 65 6e 73 20 77 68 65 |This hap|pens whe|
|00004560| 6e 20 74 68 65 20 44 4c | 4f 47 2f 44 49 54 4c 20 |n the DL|OG/DITL |
|00004570| 72 65 73 6f 75 72 63 65 | 20 69 73 20 6e 6f 74 20 |resource| is not |
|00004580| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00004590| 61 20 27 64 63 74 62 27 | 20 72 65 73 6f 75 72 63 |a 'dctb'| resourc|
|000045a0| 65 2c 20 69 6e 20 6f 74 | 68 65 72 20 77 6f 72 64 |e, in ot|her word|
|000045b0| 73 2c 20 77 68 65 6e 20 | 74 68 65 20 64 65 66 61 |s, when |the defa|
|000045c0| 75 6c 74 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 20 |ult colo|r table |
|000045d0| 69 73 20 73 70 65 63 69 | 66 69 65 64 20 77 69 74 |is speci|fied wit|
|000045e0| 68 20 52 65 73 45 64 69 | 74 2e 0d 54 68 65 20 77 |h ResEdi|t..The w|
|000045f0| 6f 72 6b 61 72 6f 75 6e | 64 20 69 73 20 74 6f 20 |orkaroun|d is to |
|00004600| 63 72 65 61 74 65 20 61 | 20 27 64 63 74 62 27 20 |create a| 'dctb' |
|00004610| 66 6f 72 20 74 68 65 20 | 64 69 61 6c 6f 67 2e 0d |for the |dialog..|
|00004620| 46 75 6e 63 74 69 6f 6e | 73 20 74 68 61 74 20 4d |Function|s that M|
|00004630| 6f 64 69 66 79 20 4d 6f | 76 69 65 20 50 72 6f 70 |odify Mo|vie Prop|
|00004640| 65 72 74 69 65 73 0d 51 | 75 69 63 6b 54 69 6d 65 |erties.Q|uickTime|
|00004650| 20 54 72 61 63 6b 20 61 | 6e 64 20 4d 6f 76 69 65 | Track a|nd Movie|
|00004660| 20 53 6f 75 6e 64 20 56 | 6f 6c 75 6d 65 0d 51 3a | Sound V|olume.Q:|
|00004670| 20 57 68 61 74 20 64 6f | 20 74 68 65 20 76 61 6c | What do| the val|
|00004680| 75 65 73 20 6f 66 20 61 | 20 6d 6f 76 69 65 d5 73 |ues of a| movie.s|
|00004690| 20 6f 72 20 74 72 61 63 | 6b d5 73 20 76 6f 6c 75 | or trac|k.s volu|
|000046a0| 6d 65 20 72 65 70 72 65 | 73 65 6e 74 3f 20 49 73 |me repre|sent? Is|
|000046b0| 20 74 68 65 72 65 20 6e | 6f 20 77 61 79 20 74 6f | there n|o way to|
|000046c0| 20 6d 61 6b 65 20 61 20 | 74 72 61 63 6b 20 6c 6f | make a |track lo|
|000046d0| 75 64 65 72 3f 0d 5f 5f | 5f 0d 41 3a 20 54 68 65 |uder?.__|_.A: The|
|000046e0| 20 76 6f 6c 75 6d 65 20 | 69 73 20 64 65 73 63 72 | volume |is descr|
|000046f0| 69 62 65 64 20 61 73 20 | 61 20 73 6d 61 6c 6c 20 |ibed as |a small |
|00004700| 66 72 61 63 74 20 38 3a | 38 20 61 6e 64 20 69 74 |fract 8:|8 and it|
|00004710| 73 20 76 61 6c 75 65 73 | 20 67 6f 20 66 72 6f 6d |s values| go from|
|00004720| 20 2d 31 20 74 6f 20 31 | 20 77 69 74 68 20 6e 65 | -1 to 1| with ne|
|00004730| 67 61 74 69 76 65 20 76 | 61 6c 75 65 73 20 61 73 |gative v|alues as|
|00004740| 20 70 6c 61 63 65 20 68 | 6f 6c 64 65 72 73 2e 20 | place h|olders. |
|00004750| 54 68 65 20 6d 61 78 69 | 6d 75 6d 20 76 6f 6c 75 |The maxi|mum volu|
|00004760| 6d 65 20 79 6f 75 20 63 | 61 6e 20 67 65 74 20 69 |me you c|an get i|
|00004770| 73 20 30 78 30 31 30 30 | 20 77 69 74 68 20 74 68 |s 0x0100| with th|
|00004780| 65 20 6d 69 6e 69 6d 75 | 6d 20 62 65 69 6e 67 20 |e minimu|m being |
|00004790| 30 20 28 6f 72 20 61 6e | 79 20 6e 65 67 61 74 69 |0 (or an|y negati|
|000047a0| 76 65 20 76 61 6c 75 65 | 29 2e 20 54 68 65 20 61 |ve value|). The a|
|000047b0| 64 76 61 6e 74 61 67 65 | 20 6f 66 20 75 73 69 6e |dvantage| of usin|
|000047c0| 67 20 6e 65 67 61 74 69 | 76 65 20 76 6f 6c 75 6d |g negati|ve volum|
|000047d0| 65 73 20 69 73 20 74 68 | 61 74 20 79 6f 75 20 63 |es is th|at you c|
|000047e0| 61 6e 20 74 75 72 6e 20 | 6f 66 66 20 73 6f 75 6e |an turn |off soun|
|000047f0| 64 20 77 68 69 6c 65 20 | 6d 61 69 6e 74 61 69 6e |d while |maintain|
|00004800| 69 6e 67 20 74 68 65 20 | 6c 65 76 65 6c 20 6f 66 |ing the |level of|
|00004810| 20 76 6f 6c 75 6d 65 2e | 20 46 6f 72 20 65 78 61 | volume.| For exa|
|00004820| 6d 70 6c 65 2c 20 2d 31 | 20 61 6e 64 20 30 20 62 |mple, -1| and 0 b|
|00004830| 6f 74 68 20 65 71 75 61 | 74 65 20 74 6f 20 6e 6f |oth equa|te to no|
|00004840| 20 76 6f 6c 75 6d 65 2c | 20 62 75 74 20 74 68 65 | volume,| but the|
|00004850| 20 2d 31 20 69 6d 70 6c | 69 65 73 20 74 68 61 74 | -1 impl|ies that|
|00004860| 20 31 20 73 68 6f 75 6c | 64 20 62 65 20 74 68 65 | 1 shoul|d be the|
|00004870| 20 76 6f 6c 75 6d 65 20 | 77 68 65 6e 20 73 6f 75 | volume |when sou|
|00004880| 6e 64 20 69 73 20 74 75 | 72 6e 65 64 20 62 61 63 |nd is tu|rned bac|
|00004890| 6b 20 6f 6e 2c 20 77 68 | 65 72 65 61 73 20 74 68 |k on, wh|ereas th|
|000048a0| 65 20 30 20 64 6f 65 73 | 20 6e 6f 74 2e 0d 54 68 |e 0 does| not..Th|
|000048b0| 65 20 76 6f 6c 75 6d 65 | 20 66 6f 72 20 61 20 74 |e volume| for a t|
|000048c0| 72 61 63 6b 20 69 73 20 | 73 63 61 6c 65 64 20 74 |rack is |scaled t|
|000048d0| 6f 20 74 68 65 20 6d 6f | 76 69 65 d5 73 20 76 6f |o the mo|vie.s vo|
|000048e0| 6c 75 6d 65 2c 20 61 6e | 64 20 74 68 65 20 6d 6f |lume, an|d the mo|
|000048f0| 76 69 65 d5 73 20 76 6f | 6c 75 6d 65 20 69 73 20 |vie.s vo|lume is |
|00004900| 73 63 61 6c 65 64 20 74 | 6f 20 74 68 65 20 76 61 |scaled t|o the va|
|00004910| 6c 75 65 20 74 68 65 20 | 75 73 65 72 20 73 70 65 |lue the |user spe|
|00004920| 63 69 66 69 65 73 20 66 | 6f 72 20 74 68 65 20 73 |cifies f|or the s|
|00004930| 70 65 61 6b 65 72 20 76 | 6f 6c 75 6d 65 20 75 73 |peaker v|olume us|
|00004940| 69 6e 67 20 74 68 65 20 | 53 6f 75 6e 64 20 63 6f |ing the |Sound co|
|00004950| 6e 74 72 6f 6c 20 70 61 | 6e 65 6c 2e 20 54 68 69 |ntrol pa|nel. Thi|
|00004960| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 74 68 65 |s means |that the|
|00004970| 20 6d 6f 76 69 65 20 76 | 6f 6c 75 6d 65 20 72 65 | movie v|olume re|
|00004980| 70 72 65 73 65 6e 74 73 | 20 74 68 65 20 6d 61 78 |presents| the max|
|00004990| 69 6d 75 6d 20 6c 6f 75 | 64 6e 65 73 73 20 6f 66 |imum lou|dness of|
|000049a0| 20 61 6e 79 20 74 72 61 | 63 6b 20 69 6e 20 74 68 | any tra|ck in th|
|000049b0| 65 20 6d 6f 76 69 65 2e | 0d 4e 6f 74 65 20 74 68 |e movie.|.Note th|
|000049c0| 61 74 20 73 74 61 72 74 | 69 6e 67 20 77 69 74 68 |at start|ing with|
|000049d0| 20 53 6f 75 6e 64 20 4d | 61 6e 61 67 65 72 20 33 | Sound M|anager 3|
|000049e0| 2e 30 20 79 6f 75 20 61 | 72 65 20 61 62 6c 65 20 |.0 you a|re able |
|000049f0| 74 6f 20 69 6e 63 72 65 | 61 73 65 20 74 68 65 20 |to incre|ase the |
|00004a00| 6c 6f 75 64 6e 65 73 73 | ca 61 62 6f 76 65 20 74 |loudness|.above t|
|00004a10| 68 65 20 6d 61 78 69 6d | 75 6d 20 6c 65 76 65 6c |he maxim|um level|
|00004a20| 20 20 75 73 69 6e 67 20 | 74 68 65 20 73 68 69 66 | using |the shif|
|00004a30| 74 20 6b 65 79 2e 0d 48 | 6f 77 20 74 6f 20 47 65 |t key..H|ow to Ge|
|00004a40| 74 20 74 68 65 20 46 69 | 72 73 74 20 56 69 64 65 |t the Fi|rst Vide|
|00004a50| 6f 20 46 72 61 6d 65 0d | 51 3a 20 53 74 65 70 70 |o Frame.|Q: Stepp|
|00004a60| 69 6e 67 20 74 68 72 6f | 75 67 68 20 51 75 69 63 |ing thro|ugh Quic|
|00004a70| 6b 54 69 6d 65 20 6d 6f | 76 69 65 20 76 69 64 65 |kTime mo|vie vide|
|00004a80| 6f 20 66 72 61 6d 65 73 | 20 69 6e 20 74 68 65 20 |o frames| in the |
|00004a90| 6f 72 64 65 72 20 74 68 | 65 79 20 61 70 70 65 61 |order th|ey appea|
|00004aa0| 72 20 69 6e 20 74 68 65 | 20 6d 6f 76 69 65 20 69 |r in the| movie i|
|00004ab0| 73 20 73 69 6d 70 6c 65 | 20 75 73 69 6e 67 20 47 |s simple| using G|
|00004ac0| 65 74 4d 6f 76 69 65 4e | 65 78 74 49 6e 74 65 72 |etMovieN|extInter|
|00004ad0| 65 73 74 69 6e 67 54 69 | 6d 65 2c 20 65 78 63 65 |estingTi|me, exce|
|00004ae0| 70 74 20 66 6f 72 20 67 | 65 74 74 69 6e 67 20 74 |pt for g|etting t|
|00004af0| 68 65 20 66 69 72 73 74 | 20 66 72 61 6d 65 2e 20 |he first| frame. |
|00004b00| 49 66 20 49 20 73 65 74 | 20 74 68 65 20 74 69 6d |If I set| the tim|
|00004b10| 65 20 74 6f 20 30 20 61 | 6e 64 20 72 61 74 65 20 |e to 0 a|nd rate |
|00004b20| 74 6f 20 31 2c 20 49 20 | 67 65 74 20 74 68 65 20 |to 1, I |get the |
|00004b30| 73 65 63 6f 6e 64 20 66 | 72 61 6d 65 2c 20 6e 6f |second f|rame, no|
|00004b40| 74 20 74 68 65 20 66 69 | 72 73 74 2e 20 49 6e 20 |t the fi|rst. In |
|00004b50| 61 64 64 69 74 69 6f 6e | 2c 20 74 68 65 20 76 69 |addition|, the vi|
|00004b60| 64 65 6f 20 6d 61 79 20 | 73 74 61 72 74 20 6c 61 |deo may |start la|
|00004b70| 74 65 72 20 74 68 61 6e | 20 61 74 20 30 2e 20 48 |ter than| at 0. H|
|00004b80| 6f 77 20 64 6f 20 79 6f | 75 20 73 75 67 67 65 73 |ow do yo|u sugges|
|00004b90| 74 20 66 69 6e 64 69 6e | 67 20 74 68 69 73 20 66 |t findin|g this f|
|00004ba0| 69 72 73 74 20 66 72 61 | 6d 65 20 6f 66 20 76 69 |irst fra|me of vi|
|00004bb0| 64 65 6f 3f 0d 5f 5f 5f | 0d 41 3a 20 54 6f 20 67 |deo?.___|.A: To g|
|00004bc0| 65 74 20 74 68 65 20 66 | 69 72 73 74 20 66 72 61 |et the f|irst fra|
|00004bd0| 6d 65 20 75 6e 64 65 72 | 20 74 68 65 20 63 6f 6e |me under| the con|
|00004be0| 64 69 74 69 6f 6e 73 20 | 79 6f 75 20 64 65 73 63 |ditions |you desc|
|00004bf0| 72 69 62 65 2c 20 79 6f | 75 20 68 61 76 65 20 74 |ribe, yo|u have t|
|00004c00| 6f 20 70 61 73 73 20 74 | 68 65 20 66 6c 61 67 20 |o pass t|he flag |
|00004c10| 6e 65 78 74 54 69 6d 65 | 45 64 67 65 4f 4b 20 20 |nextTime|EdgeOK |
|00004c20| 74 6f 20 47 65 74 4d 6f | 76 69 65 4e 65 78 74 49 |to GetMo|vieNextI|
|00004c30| 6e 74 65 72 65 73 74 69 | 6e 67 54 69 6d 65 2e 20 |nteresti|ngTime. |
|00004c40| 57 68 61 74 20 74 68 69 | 73 20 66 6c 61 67 20 64 |What thi|s flag d|
|00004c50| 6f 65 73 20 69 73 20 6d | 61 6b 65 20 74 68 65 20 |oes is m|ake the |
|00004c60| 63 61 6c 6c 20 72 65 74 | 75 72 6e 20 74 68 65 20 |call ret|urn the |
|00004c70| 63 75 72 72 65 6e 74 20 | 69 6e 74 65 72 65 73 74 |current |interest|
|00004c80| 69 6e 67 20 74 69 6d 65 | 20 69 6e 73 74 65 61 64 |ing time| instead|
|00004c90| 20 6f 66 20 74 68 65 20 | 6e 65 78 74 2c 20 69 66 | of the |next, if|
|00004ca0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 69 6d | the cur|rent tim|
|00004cb0| 65 20 69 73 20 61 6e 20 | 69 6e 74 65 72 65 73 74 |e is an |interest|
|00004cc0| 69 6e 67 20 74 69 6d 65 | 2e 20 59 6f 75 20 6e 65 |ing time|. You ne|
|00004cd0| 65 64 20 74 6f 20 64 6f | 20 74 68 69 73 20 62 65 |ed to do| this be|
|00004ce0| 63 61 75 73 65 20 74 68 | 65 72 65 d5 73 20 6e 6f |cause th|ere.s no|
|00004cf0| 20 77 61 79 20 74 6f 20 | 67 6f 20 6e 65 67 61 74 | way to |go negat|
|00004d00| 69 76 65 20 61 6e 64 20 | 74 68 65 6e 20 61 73 6b |ive and |then ask|
|00004d10| 20 66 6f 72 20 74 68 65 | 20 6e 65 78 74 20 69 6e | for the| next in|
|00004d20| 74 65 72 65 73 74 69 6e | 67 20 74 69 6d 65 2e 0d |terestin|g time..|
|00004d30| 4d 43 53 65 74 43 6c 69 | 70 20 61 6e 64 20 43 6c |MCSetCli|p and Cl|
|00004d40| 69 70 70 69 6e 67 20 77 | 69 74 68 20 74 68 65 20 |ipping w|ith the |
|00004d50| 4d 6f 76 69 65 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |Movie Co|ntroller|
|00004d60| 0d 51 3a 20 49 20 75 73 | 65 20 53 65 74 4d 6f 76 |.Q: I us|e SetMov|
|00004d70| 69 65 44 69 73 70 6c 61 | 79 43 6c 69 70 52 67 6e |ieDispla|yClipRgn|
|00004d80| 20 74 6f 20 73 65 74 20 | 6d 79 20 6d 6f 76 69 65 | to set |my movie|
|00004d90| 20 63 6c 69 70 2c 20 62 | 75 74 20 74 68 65 20 6d | clip, b|ut the m|
|00004da0| 6f 76 69 65 20 64 6f 65 | 73 6e d5 74 20 6f 62 65 |ovie doe|sn.t obe|
|00004db0| 79 20 6d 79 20 63 6c 69 | 70 70 69 6e 67 2e 20 44 |y my cli|pping. D|
|00004dc0| 6f 65 73 20 74 68 65 20 | 6d 6f 76 69 65 20 63 6f |oes the |movie co|
|00004dd0| 6e 74 72 6f 6c 6c 65 72 | 20 63 6f 6d 70 6f 6e 65 |ntroller| compone|
|00004de0| 6e 74 20 69 67 6e 6f 72 | 65 20 74 68 69 73 20 63 |nt ignor|e this c|
|00004df0| 6c 69 70 70 69 6e 67 3f | 0d 5f 5f 5f 0d 54 68 65 |lipping?|.___.The|
|00004e00| 20 63 6f 6e 74 72 6f 6c | 6c 65 72 20 75 73 65 73 | control|ler uses|
|00004e10| 20 74 68 65 20 64 69 73 | 70 6c 61 79 20 63 6c 69 | the dis|play cli|
|00004e20| 70 20 66 6f 72 20 69 74 | 73 20 6f 77 6e 20 70 75 |p for it|s own pu|
|00004e30| 72 70 6f 73 65 73 2c 20 | 73 75 63 68 20 61 73 20 |rposes, |such as |
|00004e40| 66 6f 72 20 62 61 64 67 | 65 73 2e 20 49 66 20 79 |for badg|es. If y|
|00004e50| 6f 75 20 77 61 6e 74 20 | 74 6f 20 64 6f 20 63 6c |ou want |to do cl|
|00004e60| 69 70 70 69 6e 67 20 77 | 69 74 68 20 74 68 65 20 |ipping w|ith the |
|00004e70| 6d 6f 76 69 65 20 63 6f | 6e 74 72 6f 6c 6c 65 72 |movie co|ntroller|
|00004e80| 20 79 6f 75 20 6d 75 73 | 74 20 75 73 65 20 4d 43 | you mus|t use MC|
|00004e90| 53 65 74 43 6c 69 70 2e | 20 4d 43 53 65 74 43 6c |SetClip.| MCSetCl|
|00004ea0| 69 70 20 74 61 6b 65 73 | 20 74 77 6f 20 72 65 67 |ip takes| two reg|
|00004eb0| 69 6f 6e 73 2e 20 54 68 | 65 20 66 69 72 73 74 20 |ions. Th|e first |
|00004ec0| 63 6c 69 70 73 20 62 6f | 74 68 20 74 68 65 20 6d |clips bo|th the m|
|00004ed0| 6f 76 69 65 20 61 6e 64 | 20 74 68 65 20 63 6f 6e |ovie and| the con|
|00004ee0| 74 72 6f 6c 6c 65 72 2e | 20 54 68 65 20 73 65 63 |troller.| The sec|
|00004ef0| 6f 6e 64 20 63 6c 69 70 | 73 20 6a 75 73 74 20 74 |ond clip|s just t|
|00004f00| 68 65 20 6d 6f 76 69 65 | 2c 20 61 6e 64 20 69 73 |he movie|, and is|
|00004f10| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 20 74 | equival|ent to t|
|00004f20| 68 65 20 6d 6f 76 69 65 | 20 64 69 73 70 6c 61 79 |he movie| display|
|00004f30| 20 63 6c 69 70 2e 20 49 | 66 20 62 6f 74 68 20 63 | clip. I|f both c|
|00004f40| 6c 69 70 73 20 61 72 65 | 20 73 65 74 2c 20 74 68 |lips are| set, th|
|00004f50| 65 20 63 6f 6e 74 72 6f | 6c 6c 65 72 20 64 6f 65 |e contro|ller doe|
|00004f60| 73 20 74 68 65 20 72 69 | 67 68 74 20 74 68 69 6e |s the ri|ght thin|
|00004f70| 67 20 61 6e 64 20 6d 65 | 72 67 65 73 20 74 68 65 |g and me|rges the|
|00004f80| 6d 20 61 73 20 61 70 70 | 72 6f 70 72 69 61 74 65 |m as app|ropriate|
|00004f90| 2e 20 49 66 20 79 6f 75 | 20 64 6f 6e d5 74 20 77 |. If you| don.t w|
|00004fa0| 61 6e 74 20 6f 6e 65 20 | 6f 72 20 74 68 65 20 6f |ant one |or the o|
|00004fb0| 74 68 65 72 20 6f 66 20 | 74 68 65 20 63 6c 69 70 |ther of |the clip|
|00004fc0| 73 2c 20 73 65 74 20 74 | 68 65 6d 20 74 6f 20 7a |s, set t|hem to z|
|00004fd0| 65 72 6f 2e 0d 49 6e 20 | 67 65 6e 65 72 61 6c 2c |ero..In |general,|
|00004fe0| 20 69 66 20 79 6f 75 20 | 61 72 65 20 67 6f 69 6e | if you |are goin|
|00004ff0| 67 20 74 6f 20 64 6f 20 | 73 6f 6d 65 74 68 69 6e |g to do |somethin|
|00005000| 67 20 74 6f 20 61 20 6d | 6f 76 69 65 20 74 68 61 |g to a m|ovie tha|
|00005010| 74 20 69 73 20 61 74 74 | 61 63 68 65 64 20 74 6f |t is att|ached to|
|00005020| 20 61 20 63 6f 6e 74 72 | 6f 6c 6c 65 72 20 79 6f | a contr|oller yo|
|00005030| 75 20 6d 75 73 74 20 65 | 69 74 68 65 72 20 64 6f |u must e|ither do|
|00005040| 20 69 74 20 74 68 72 6f | 75 67 68 20 74 68 65 20 | it thro|ugh the |
|00005050| 63 6f 6e 74 72 6f 6c 6c | 65 72 2c 20 75 73 69 6e |controll|er, usin|
|00005060| 67 20 74 68 65 20 61 63 | 74 69 6f 6e 20 63 61 6c |g the ac|tion cal|
|00005070| 6c 73 2c 20 6f 72 20 79 | 6f 75 20 6d 75 73 74 20 |ls, or y|ou must |
|00005080| 63 61 6c 6c 20 4d 43 4d | 6f 76 69 65 43 68 61 6e |call MCM|ovieChan|
|00005090| 67 65 64 2e 20 4f 74 68 | 65 72 77 69 73 65 2c 20 |ged. Oth|erwise, |
|000050a0| 74 68 65 20 63 6f 6e 74 | 72 6f 6c 6c 65 72 20 77 |the cont|roller w|
|000050b0| 6f 75 6c 64 20 6e 65 65 | 64 20 74 6f 20 63 6f 6e |ould nee|d to con|
|000050c0| 73 74 61 6e 74 6c 79 20 | 70 6f 6c 6c 20 74 68 65 |stantly |poll the|
|000050d0| 20 6d 6f 76 69 65 20 74 | 6f 20 73 65 65 20 69 66 | movie t|o see if|
|000050e0| 20 69 74 73 20 73 74 61 | 74 65 20 63 68 61 6e 67 | its sta|te chang|
|000050f0| 65 64 2e 20 43 6c 65 61 | 72 6c 79 20 74 68 69 73 |ed. Clea|rly this|
|00005100| 20 77 6f 75 6c 64 20 62 | 65 20 73 6c 6f 77 2e 0d | would b|e slow..|
|00005110| 44 65 74 65 72 6d 69 6e | 69 6e 67 20 51 75 69 63 |Determin|ing Quic|
|00005120| 6b 44 72 61 77 20 56 69 | 64 65 6f 20 4d 65 64 69 |kDraw Vi|deo Medi|
|00005130| 61 20 50 69 78 65 6c 20 | 44 65 70 74 68 0d 51 3a |a Pixel |Depth.Q:|
|00005140| 20 48 6f 77 20 64 6f 20 | 49 20 67 65 74 20 74 68 | How do |I get th|
|00005150| 65 20 70 69 78 65 6c 20 | 64 65 70 74 68 20 6f 66 |e pixel |depth of|
|00005160| 20 74 68 65 20 51 75 69 | 63 6b 54 69 6d 65 20 76 | the Qui|ckTime v|
|00005170| 69 64 65 6f 20 6d 65 64 | 69 61 20 66 6f 72 20 61 |ideo med|ia for a|
|00005180| 20 67 69 76 65 6e 20 74 | 72 61 63 6b 3f 0d 5f 5f | given t|rack?.__|
|00005190| 5f 0d 41 3a 20 54 6f 20 | 66 69 6e 64 20 74 68 65 |_.A: To |find the|
|000051a0| 20 76 69 64 65 6f 20 6d | 65 64 69 61 20 70 69 78 | video m|edia pix|
|000051b0| 65 6c 20 64 65 70 74 68 | 2c 20 79 6f 75 d5 6c 6c |el depth|, you.ll|
|000051c0| 20 6e 65 65 64 20 74 6f | 20 72 65 74 72 69 65 76 | need to| retriev|
|000051d0| 65 20 74 68 65 20 6d 65 | 64 69 61 d5 73 20 69 6d |e the me|dia.s im|
|000051e0| 61 67 65 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |age desc|ription |
|000051f0| 68 61 6e 64 6c 65 2e 20 | 59 6f 75 20 63 61 6e 20 |handle. |You can |
|00005200| 75 73 65 20 47 65 74 4d | 65 64 69 61 53 61 6d 70 |use GetM|ediaSamp|
|00005210| 6c 65 44 65 73 63 72 69 | 70 74 69 6f 6e 20 74 6f |leDescri|ption to|
|00005220| 20 67 65 74 20 69 74 2c | 20 62 75 74 20 74 68 69 | get it,| but thi|
|00005230| 73 20 72 6f 75 74 69 6e | 65 20 6e 65 65 64 73 20 |s routin|e needs |
|00005240| 62 6f 74 68 20 74 68 65 | 20 76 69 64 65 6f 20 6d |both the| video m|
|00005250| 65 64 69 61 20 61 6e 64 | 20 74 68 65 20 74 72 61 |edia and| the tra|
|00005260| 63 6b d5 73 20 69 6e 64 | 65 78 20 6e 75 6d 62 65 |ck.s ind|ex numbe|
|00005270| 72 2e 20 49 74 d5 73 20 | 6e 6f 74 20 6f 62 76 69 |r. It.s |not obvi|
|00005280| 6f 75 73 2c 20 62 75 74 | 20 61 20 6d 65 64 69 61 |ous, but| a media|
|00005290| d5 73 20 74 79 70 65 20 | 69 73 20 69 64 65 6e 74 |.s type |is ident|
|000052a0| 69 66 69 65 64 20 62 79 | 20 69 74 73 20 6d 65 64 |ified by| its med|
|000052b0| 69 61 20 68 61 6e 64 6c | 65 72 d5 73 20 74 79 70 |ia handl|er.s typ|
|000052c0| 65 2e 20 54 68 75 73 2c | 20 79 6f 75 20 63 61 6e |e. Thus,| you can|
|000052d0| 20 77 61 6c 6b 20 74 68 | 72 6f 75 67 68 20 61 20 | walk th|rough a |
|000052e0| 6d 6f 76 69 65 d5 73 20 | 74 72 61 63 6b 73 20 62 |movie.s |tracks b|
|000052f0| 79 20 75 73 69 6e 67 20 | 69 74 73 20 69 6e 64 65 |y using |its inde|
|00005300| 78 65 73 20 75 6e 74 69 | 6c 20 79 6f 75 20 66 69 |xes unti|l you fi|
|00005310| 6e 64 20 76 69 64 65 6f | 20 6d 65 64 69 61 2c 20 |nd video| media, |
|00005320| 61 74 20 77 68 69 63 68 | 20 70 6f 69 6e 74 20 79 |at which| point y|
|00005330| 6f 75 20 68 61 76 65 20 | 62 6f 74 68 20 74 68 65 |ou have |both the|
|00005340| 20 74 72 61 63 6b 20 69 | 6e 64 65 78 20 61 6e 64 | track i|ndex and|
|00005350| 20 76 69 64 65 6f 20 6d | 65 64 69 61 2e 0d 54 68 | video m|edia..Th|
|00005360| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 61 6d 70 |e follow|ing samp|
|00005370| 6c 65 20 63 6f 64 65 20 | 64 6f 65 73 20 74 68 65 |le code |does the|
|00005380| 20 74 72 69 63 6b 3a 0d | 4d 65 64 69 61 20 47 65 | trick:.|Media Ge|
|00005390| 74 46 69 72 73 74 56 69 | 64 65 6f 4d 65 64 69 61 |tFirstVi|deoMedia|
|000053a0| 28 4d 6f 76 69 65 20 63 | 6f 6f 6c 4d 6f 76 69 65 |(Movie c|oolMovie|
|000053b0| 2c 20 6c 6f 6e 67 20 2a | 74 72 61 63 6b 49 6e 64 |, long *|trackInd|
|000053c0| 65 78 29 0d 7b 0d 20 20 | 54 72 61 63 6b 20 20 20 |ex).{. |Track |
|000053d0| 20 63 6f 6f 6c 54 72 61 | 63 6b 20 3d 20 6e 69 6c | coolTra|ck = nil|
|000053e0| 3b 0d 20 20 4d 65 64 69 | 61 20 20 20 20 63 6f 6f |;. Medi|a coo|
|000053f0| 6c 4d 65 64 69 61 20 3d | 20 6e 69 6c 3b 0d 20 20 |lMedia =| nil;. |
|00005400| 6c 6f 6e 67 20 20 20 20 | 6e 75 6d 54 72 61 63 6b |long |numTrack|
|00005410| 73 3b 0d 20 20 4f 53 54 | 79 70 65 20 20 6d 65 64 |s;. OST|ype med|
|00005420| 69 61 54 79 70 65 3b 0d | 20 20 6e 75 6d 54 72 61 |iaType;.| numTra|
|00005430| 63 6b 73 20 3d 20 47 65 | 74 4d 6f 76 69 65 54 72 |cks = Ge|tMovieTr|
|00005440| 61 63 6b 43 6f 75 6e 74 | 28 63 6f 6f 6c 4d 6f 76 |ackCount|(coolMov|
|00005450| 69 65 29 3b 0d 20 20 66 | 6f 72 20 28 2a 74 72 61 |ie);. f|or (*tra|
|00005460| 63 6b 49 6e 64 65 78 3d | 31 3b 20 2a 74 72 61 63 |ckIndex=|1; *trac|
|00005470| 6b 49 6e 64 65 78 3c 3d | 6e 75 6d 54 72 61 63 6b |kIndex<=|numTrack|
|00005480| 73 3b 20 28 2a 74 72 61 | 63 6b 49 6e 64 65 78 29 |s; (*tra|ckIndex)|
|00005490| 2b 2b 29 20 7b 0d 20 20 | 20 20 63 6f 6f 6c 54 72 |++) {. | coolTr|
|000054a0| 61 63 6b 20 3d 20 47 65 | 74 4d 6f 76 69 65 49 6e |ack = Ge|tMovieIn|
|000054b0| 64 54 72 61 63 6b 28 63 | 6f 6f 6c 4d 6f 76 69 65 |dTrack(c|oolMovie|
|000054c0| 2c 20 2a 74 72 61 63 6b | 49 6e 64 65 78 29 3b 0d |, *track|Index);.|
|000054d0| 20 20 20 20 69 66 20 28 | 63 6f 6f 6c 54 72 61 63 | if (|coolTrac|
|000054e0| 6b 29 20 63 6f 6f 6c 4d | 65 64 69 61 20 3d 20 47 |k) coolM|edia = G|
|000054f0| 65 74 54 72 61 63 6b 4d | 65 64 69 61 28 63 6f 6f |etTrackM|edia(coo|
|00005500| 6c 54 72 61 63 6b 29 3b | 0d 20 20 20 20 69 66 20 |lTrack);|. if |
|00005510| 28 63 6f 6f 6c 4d 65 64 | 69 61 29 20 47 65 74 4d |(coolMed|ia) GetM|
|00005520| 65 64 69 61 48 61 6e 64 | 6c 65 72 44 65 73 63 72 |ediaHand|lerDescr|
|00005530| 69 70 74 69 6f 6e 28 63 | 6f 6f 6c 4d 65 64 69 61 |iption(c|oolMedia|
|00005540| 2c 0d 20 20 20 20 20 20 | 26 6d 65 64 69 61 54 79 |,. |&mediaTy|
|00005550| 70 65 2c 20 6e 69 6c 2c | 20 6e 69 6c 29 3b 0d 20 |pe, nil,| nil);. |
|00005560| 20 20 20 69 66 20 28 6d | 65 64 69 61 54 79 70 65 | if (m|ediaType|
|00005570| 20 3d 20 56 69 64 65 6f | 4d 65 64 69 61 54 79 70 | = Video|MediaTyp|
|00005580| 65 29 20 72 65 74 75 72 | 6e 20 63 6f 6f 6c 4d 65 |e) retur|n coolMe|
|00005590| 64 69 61 3b 0d 20 20 7d | 0d 20 20 2a 74 72 61 63 |dia;. }|. *trac|
|000055a0| 6b 49 6e 64 65 78 20 3d | 20 30 3b 20 20 2f 2f 20 |kIndex =| 0; // |
|000055b0| 74 72 61 63 6b 49 6e 64 | 65 78 20 63 61 6e 27 74 |trackInd|ex can't|
|000055c0| 20 62 65 20 30 0d 20 20 | 72 65 74 75 72 6e 20 6e | be 0. |return n|
|000055d0| 69 6c 3b 20 20 20 20 20 | 20 2f 2f 20 77 65 6e 74 |il; | // went|
|000055e0| 20 74 68 72 6f 75 67 68 | 20 61 6c 6c 20 74 72 61 | through| all tra|
|000055f0| 63 6b 73 20 61 6e 64 20 | 6e 6f 20 76 69 64 65 6f |cks and |no video|
|00005600| 0d 7d 0d 73 68 6f 72 74 | 20 47 65 74 46 69 72 73 |.}.short| GetFirs|
|00005610| 74 56 69 64 65 6f 54 72 | 61 63 6b 50 69 78 65 6c |tVideoTr|ackPixel|
|00005620| 44 65 70 74 68 28 4d 6f | 76 69 65 20 63 6f 6f 6c |Depth(Mo|vie cool|
|00005630| 4d 6f 76 69 65 29 0d 7b | 0d 20 20 53 61 6d 70 6c |Movie).{|. Sampl|
|00005640| 65 44 65 73 63 72 69 70 | 74 69 6f 6e 48 61 6e 64 |eDescrip|tionHand|
|00005650| 6c 65 20 69 6d 61 67 65 | 44 65 73 63 48 20 3d 0d |le image|DescH =.|
|00005660| 20 20 20 20 28 53 61 6d | 70 6c 65 44 65 73 63 72 | (Sam|pleDescr|
|00005670| 69 70 74 69 6f 6e 48 61 | 6e 64 6c 65 29 4e 65 77 |iptionHa|ndle)New|
|00005680| 48 61 6e 64 6c 65 28 73 | 69 7a 65 6f 66 28 48 61 |Handle(s|izeof(Ha|
|00005690| 6e 64 6c 65 29 29 3b 0d | 20 20 6c 6f 6e 67 20 20 |ndle));.| long |
|000056a0| 20 20 74 72 61 63 6b 49 | 6e 64 65 78 20 3d 20 30 | trackI|ndex = 0|
|000056b0| 3b 0d 20 20 4d 65 64 69 | 61 20 20 20 20 63 6f 6f |;. Medi|a coo|
|000056c0| 6c 4d 65 64 69 61 20 3d | 20 6e 69 6c 3b 0d 20 20 |lMedia =| nil;. |
|000056d0| 63 6f 6f 6c 4d 65 64 69 | 61 20 3d 20 47 65 74 46 |coolMedi|a = GetF|
|000056e0| 69 72 73 74 56 69 64 65 | 6f 4d 65 64 69 61 28 63 |irstVide|oMedia(c|
|000056f0| 6f 6f 6c 4d 6f 76 69 65 | 2c 20 26 74 72 61 63 6b |oolMovie|, &track|
|00005700| 49 6e 64 65 78 29 3b 0d | 20 20 69 66 20 28 21 74 |Index);.| if (!t|
|00005710| 72 61 63 6b 49 6e 64 65 | 78 20 7c 7c 20 21 63 6f |rackInde|x || !co|
|00005720| 6f 6c 4d 65 64 69 61 29 | 20 72 65 74 75 72 6e 20 |olMedia)| return |
|00005730| 2d 31 3b 20 20 2f 2f 20 | 77 65 20 6e 65 65 64 20 |-1; // |we need |
|00005740| 62 6f 74 68 0d 20 20 47 | 65 74 4d 65 64 69 61 53 |both. G|etMediaS|
|00005750| 61 6d 70 6c 65 44 65 73 | 63 72 69 70 74 69 6f 6e |ampleDes|cription|
|00005760| 28 63 6f 6f 6c 4d 65 64 | 69 61 2c 20 74 72 61 63 |(coolMed|ia, trac|
|00005770| 6b 49 6e 64 65 78 2c 20 | 69 6d 61 67 65 44 65 73 |kIndex, |imageDes|
|00005780| 63 48 29 3b 0d 20 20 72 | 65 74 75 72 6e 20 28 2a |cH);. r|eturn (*|
|00005790| 28 49 6d 61 67 65 44 65 | 73 63 72 69 70 74 69 6f |(ImageDe|scriptio|
|000057a0| 6e 48 61 6e 64 6c 65 29 | 69 6d 61 67 65 44 65 73 |nHandle)|imageDes|
|000057b0| 63 48 29 2d 3e 64 65 70 | 74 68 3b 0d 7d 0d 4e 6f |cH)->dep|th;.}.No|
|000057c0| 74 65 20 74 68 61 74 20 | 51 75 69 63 6b 54 69 6d |te that |QuickTim|
|000057d0| 65 20 32 2e 30 20 68 61 | 73 20 61 20 6e 65 77 20 |e 2.0 ha|s a new |
|000057e0| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 65 64 20 |function| called |
|000057f0| 47 65 74 4d 6f 76 69 65 | 49 6e 64 54 72 61 63 6b |GetMovie|IndTrack|
|00005800| 54 79 70 65 20 74 68 61 | 74 20 64 6f 65 73 20 6d |Type tha|t does m|
|00005810| 6f 73 74 20 6f 66 20 74 | 68 65 20 77 6f 72 6b 20 |ost of t|he work |
|00005820| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|00005830| 20 73 61 6d 70 6c 65 2e | 20 47 65 74 4d 6f 76 69 | sample.| GetMovi|
|00005840| 65 49 6e 64 54 72 61 63 | 6b 54 79 70 65 20 6c 65 |eIndTrac|kType le|
|00005850| 74 73 20 79 6f 75 20 73 | 65 61 72 63 68 20 66 6f |ts you s|earch fo|
|00005860| 72 20 61 6c 6c 20 6f 66 | 20 61 20 6d 6f 76 69 65 |r all of| a movie|
|00005870| 27 73 20 74 72 61 63 6b | 73 20 74 68 61 74 20 73 |'s track|s that s|
|00005880| 68 61 72 65 20 61 20 67 | 69 76 65 6e 20 6d 65 64 |hare a g|iven med|
|00005890| 69 61 20 74 79 70 65 20 | 6f 72 20 6d 65 64 69 61 |ia type |or media|
|000058a0| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 2e | charact|eristic.|
|000058b0| 20 53 65 65 20 74 68 65 | 20 51 75 69 63 6b 54 69 | See the| QuickTi|
|000058c0| 6d 65 20 32 2e 30 20 53 | 44 4b 20 64 6f 63 75 6d |me 2.0 S|DK docum|
|000058d0| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 6d 6f 72 |entation| for mor|
|000058e0| 65 20 64 65 74 61 69 6c | 73 2e 0d 53 65 74 4d 6f |e detail|s..SetMo|
|000058f0| 76 69 65 44 72 61 77 69 | 6e 67 43 6f 6d 70 6c 65 |vieDrawi|ngComple|
|00005900| 74 65 50 72 6f 63 20 0d | 53 65 74 4d 6f 76 69 65 |teProc .|SetMovie|
|00005910| 44 72 61 77 69 6e 67 43 | 6f 6d 70 6c 65 74 65 50 |DrawingC|ompleteP|
|00005920| 72 6f 63 20 6c 65 74 73 | 20 79 6f 75 20 73 65 74 |roc lets| you set|
|00005930| 20 61 20 63 61 6c 6c 62 | 61 63 6b 20 70 72 6f 63 | a callb|ack proc|
|00005940| 65 64 75 72 65 20 74 68 | 61 74 20 69 73 20 63 61 |edure th|at is ca|
|00005950| 6c 6c 65 64 20 61 66 74 | 65 72 20 61 20 6d 6f 76 |lled aft|er a mov|
|00005960| 69 65 20 68 61 73 20 64 | 72 61 77 6e 20 69 6e 20 |ie has d|rawn in |
|00005970| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 6f 66 20 69 |one or m|ore of i|
|00005980| 74 73 20 74 72 61 63 6b | 73 2e 20 49 6e 20 74 68 |ts track|s. In th|
|00005990| 69 73 20 77 61 79 2c 20 | 79 6f 75 72 20 61 70 70 |is way, |your app|
|000059a0| 6c 69 63 61 74 69 6f 6e | 20 63 61 6e 20 62 65 20 |lication| can be |
|000059b0| 61 77 61 72 65 20 6f 66 | 20 77 68 65 6e 20 51 75 |aware of| when Qu|
|000059c0| 69 63 6b 54 69 6d 65 20 | 68 61 73 20 64 72 61 77 |ickTime |has draw|
|000059d0| 6e 20 66 72 61 6d 65 73 | 20 61 6e 64 20 77 68 65 |n frames| and whe|
|000059e0| 6e 20 69 74 20 68 61 73 | 6e d5 74 2e 20 54 68 69 |n it has|n.t. Thi|
|000059f0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 73 |s inform|ation is|
|00005a00| 20 76 65 72 79 20 75 73 | 65 66 75 6c 20 77 68 65 | very us|eful whe|
|00005a10| 6e 20 63 6f 6d 62 69 6e | 65 64 20 77 69 74 68 20 |n combin|ed with |
|00005a20| 53 65 74 54 72 61 63 6b | 47 57 6f 72 6c 64 20 28 |SetTrack|GWorld (|
|00005a30| 73 65 65 20 62 65 6c 6f | 77 29 2e 0d 70 61 73 63 |see belo|w)..pasc|
|00005a40| 61 6c 20 76 6f 69 64 20 | 53 65 74 4d 6f 76 69 65 |al void |SetMovie|
|00005a50| 44 72 61 77 69 6e 67 43 | 6f 6d 70 6c 65 74 65 50 |DrawingC|ompleteP|
|00005a60| 72 6f 63 28 4d 6f 76 69 | 65 20 74 68 65 4d 6f 76 |roc(Movi|e theMov|
|00005a70| 69 65 2c 20 4d 6f 76 69 | 65 44 72 61 77 69 6e 67 |ie, Movi|eDrawing|
|00005a80| 43 6f 6d 70 6c 65 74 65 | 50 72 6f 63 50 74 72 20 |Complete|ProcPtr |
|00005a90| 70 72 6f 63 2c 20 6c 6f | 6e 67 20 72 65 66 43 6f |proc, lo|ng refCo|
|00005aa0| 6e 29 0d 74 68 65 4d 6f | 76 69 65 09 54 68 65 20 |n).theMo|vie.The |
|00005ab0| 4d 6f 76 69 65 20 74 6f | 20 73 65 74 20 74 68 65 |Movie to| set the|
|00005ac0| 20 70 72 6f 63 20 6f 6e | 2e 0d 70 72 6f 63 09 59 | proc on|..proc.Y|
|00005ad0| 6f 75 72 20 63 61 6c 6c | 20 62 61 63 6b 20 70 72 |our call| back pr|
|00005ae0| 6f 63 65 64 75 72 65 2c | 20 6f 72 20 6e 69 6c 20 |ocedure,| or nil |
|00005af0| 74 6f 20 72 65 6d 6f 76 | 65 20 69 74 2e 0d 72 65 |to remov|e it..re|
|00005b00| 66 43 6f 6e 09 56 61 6c | 75 65 20 74 6f 20 70 61 |fCon.Val|ue to pa|
|00005b10| 73 73 20 74 6f 20 79 6f | 75 72 20 63 61 6c 6c 62 |ss to yo|ur callb|
|00005b20| 61 63 6b 20 70 72 6f 63 | 65 64 75 72 65 2e 0d 74 |ack proc|edure..t|
|00005b30| 79 70 65 64 65 66 20 70 | 61 73 63 61 6c 20 4f 53 |ypedef p|ascal OS|
|00005b40| 45 72 72 20 28 2a 4d 6f | 76 69 65 44 72 61 77 69 |Err (*Mo|vieDrawi|
|00005b50| 6e 67 43 6f 6d 70 6c 65 | 74 65 50 72 6f 63 50 74 |ngComple|teProcPt|
|00005b60| 72 29 28 4d 6f 76 69 65 | 20 74 68 65 4d 6f 76 69 |r)(Movie| theMovi|
|00005b70| 65 2c 20 6c 6f 6e 67 20 | 72 65 66 43 6f 6e 29 3b |e, long |refCon);|
|00005b80| 0d 45 72 72 6f 72 73 3a | 0d 69 6e 76 61 6c 69 64 |.Errors:|.invalid|
|00005b90| 4d 6f 76 69 65 20 09 2d | 32 30 31 30 09 59 6f 75 |Movie .-|2010.You|
|00005ba0| 72 20 6d 6f 76 69 65 20 | 72 65 66 65 72 65 6e 63 |r movie |referenc|
|00005bb0| 65 20 69 73 20 62 61 64 | 2e 0d 53 65 74 54 72 61 |e is bad|..SetTra|
|00005bc0| 63 6b 47 57 6f 72 6c 64 | 0d 53 65 74 54 72 61 63 |ckGWorld|.SetTrac|
|00005bd0| 6b 47 57 6f 72 6c 64 20 | 6c 65 74 73 20 79 6f 75 |kGWorld |lets you|
|00005be0| 20 66 6f 72 63 65 20 61 | 20 74 72 61 63 6b 20 74 | force a| track t|
|00005bf0| 6f 20 64 72 61 77 20 69 | 6e 74 6f 20 61 20 70 61 |o draw i|nto a pa|
|00005c00| 72 74 69 63 75 6c 61 72 | 20 47 57 6f 72 6c 64 2e |rticular| GWorld.|
|00005c10| 20 54 68 69 73 20 47 57 | 6f 72 6c 64 20 6d 61 79 | This GW|orld may|
|00005c20| 20 62 65 20 64 69 66 66 | 65 72 65 6e 74 20 66 72 | be diff|erent fr|
|00005c30| 6f 6d 20 74 68 61 74 20 | 6f 66 20 74 68 65 20 65 |om that |of the e|
|00005c40| 6e 74 69 72 65 20 6d 6f | 76 69 65 2e 20 41 66 74 |ntire mo|vie. Aft|
|00005c50| 65 72 20 74 68 65 20 74 | 72 61 63 6b 20 68 61 73 |er the t|rack has|
|00005c60| 20 64 72 61 77 6e 2c 20 | 69 74 20 63 61 6c 6c 73 | drawn, |it calls|
|00005c70| 20 79 6f 75 72 20 74 72 | 61 6e 73 66 65 72 20 70 | your tr|ansfer p|
|00005c80| 72 6f 63 65 64 75 72 65 | 20 74 6f 20 63 6f 70 79 |rocedure| to copy|
|00005c90| 20 74 68 65 20 74 72 61 | 63 6b 20 74 6f 20 74 68 | the tra|ck to th|
|00005ca0| 65 20 61 63 74 75 61 6c | 20 6d 6f 76 69 65 20 47 |e actual| movie G|
|00005cb0| 57 6f 72 6c 64 2e 20 57 | 68 65 6e 20 79 6f 75 72 |World. W|hen your|
|00005cc0| 20 74 72 61 6e 73 66 65 | 72 20 70 72 6f 63 65 64 | transfe|r proced|
|00005cd0| 75 72 65 20 69 73 20 73 | 65 74 2c 20 74 68 65 20 |ure is s|et, the |
|00005ce0| 63 75 72 72 65 6e 74 20 | 47 57 6f 72 6c 64 20 69 |current |GWorld i|
|00005cf0| 73 20 73 65 74 20 74 6f | 20 74 68 65 20 63 6f 72 |s set to| the cor|
|00005d00| 72 65 63 74 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |rect des|tination|
|00005d10| 2e 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 69 |. You ca|n also i|
|00005d20| 6e 73 74 61 6c 6c 20 61 | 20 74 72 61 6e 73 66 65 |nstall a| transfe|
|00005d30| 72 20 70 72 6f 63 65 64 | 75 72 65 20 61 6e 64 20 |r proced|ure and |
|00005d40| 73 65 74 20 74 68 65 20 | 47 57 6f 72 6c 64 20 74 |set the |GWorld t|
|00005d50| 6f 20 6e 69 6c 2e 20 54 | 68 69 73 20 72 65 73 75 |o nil. T|his resu|
|00005d60| 6c 74 73 20 69 6e 20 79 | 6f 75 72 20 74 72 61 6e |lts in y|our tran|
|00005d70| 73 66 65 72 20 70 72 6f | 63 65 64 75 72 65 20 62 |sfer pro|cedure b|
|00005d80| 65 69 6e 67 20 63 61 6c | 6c 65 64 20 6f 6e 6c 79 |eing cal|led only|
|00005d90| 20 61 73 20 61 20 6e 6f | 74 69 66 69 63 61 74 69 | as a no|tificati|
|00005da0| 6f 6e 20 74 68 61 74 20 | 74 68 65 20 74 72 61 63 |on that |the trac|
|00005db0| 6b 20 68 61 73 20 64 72 | 61 77 6e d1 6e 6f 20 74 |k has dr|awn.no t|
|00005dc0| 72 61 6e 73 66 65 72 20 | 6e 65 65 64 73 20 74 6f |ransfer |needs to|
|00005dd0| 20 74 61 6b 65 20 70 6c | 61 63 65 2e 0d 70 61 73 | take pl|ace..pas|
|00005de0| 63 61 6c 20 76 6f 69 64 | 20 53 65 74 54 72 61 63 |cal void| SetTrac|
|00005df0| 6b 47 57 6f 72 6c 64 28 | 54 72 61 63 6b 20 74 68 |kGWorld(|Track th|
|00005e00| 65 54 72 61 63 6b 2c 20 | 43 47 72 61 66 50 74 72 |eTrack, |CGrafPtr|
|00005e10| 20 70 6f 72 74 2c 20 47 | 44 48 61 6e 64 6c 65 20 | port, G|DHandle |
|00005e20| 67 64 68 2c 20 54 72 61 | 63 6b 54 72 61 6e 73 66 |gdh, Tra|ckTransf|
|00005e30| 65 72 50 72 6f 63 20 70 | 72 6f 63 2c 20 6c 6f 6e |erProc p|roc, lon|
|00005e40| 67 20 72 65 66 43 6f 6e | 29 0d 74 68 65 54 72 61 |g refCon|).theTra|
|00005e50| 63 6b 09 54 68 65 20 74 | 72 61 63 6b 20 74 6f 20 |ck.The t|rack to |
|00005e60| 73 65 74 20 74 68 65 20 | 70 72 6f 63 20 74 6f 2e |set the |proc to.|
|00005e70| 0d 70 6f 72 74 09 54 68 | 65 20 70 6f 72 74 20 66 |.port.Th|e port f|
|00005e80| 6f 72 20 74 68 65 20 74 | 72 61 63 6b 20 74 6f 20 |or the t|rack to |
|00005e90| 64 72 61 77 20 74 6f 2c | 20 6f 72 20 6e 69 6c 20 |draw to,| or nil |
|00005ea0| 74 6f 20 75 73 65 20 74 | 68 65 20 6d 6f 76 69 65 |to use t|he movie|
|00005eb0| d5 73 20 47 57 6f 72 6c | 64 2e 0d 67 64 68 09 47 |.s GWorl|d..gdh.G|
|00005ec0| 44 65 76 69 63 65 20 61 | 73 73 6f 63 69 61 74 65 |Device a|ssociate|
|00005ed0| 64 20 77 69 74 68 20 74 | 68 65 20 70 6f 72 74 2c |d with t|he port,|
|00005ee0| 20 6f 72 20 6e 69 6c 2e | 0d 70 72 6f 63 09 52 65 | or nil.|.proc.Re|
|00005ef0| 74 75 72 6e 73 20 70 6f | 69 6e 74 65 72 20 74 6f |turns po|inter to|
|00005f00| 20 79 6f 75 72 20 74 72 | 61 6e 73 66 65 72 20 70 | your tr|ansfer p|
|00005f10| 72 6f 63 65 64 75 72 65 | 2c 20 6f 72 20 6e 69 6c |rocedure|, or nil|
|00005f20| 20 74 6f 20 72 65 6d 6f | 76 65 20 69 74 2e 0d 72 | to remo|ve it..r|
|00005f30| 65 66 43 6f 6e 20 09 56 | 61 6c 75 65 20 74 6f 20 |efCon .V|alue to |
|00005f40| 70 61 73 73 20 74 6f 20 | 79 6f 75 72 20 74 72 61 |pass to |your tra|
|00005f50| 6e 73 66 65 72 20 70 72 | 6f 63 65 64 75 72 65 2e |nsfer pr|ocedure.|
|00005f60| 0d 74 79 70 65 64 65 66 | 20 70 61 73 63 61 6c 20 |.typedef| pascal |
|00005f70| 4f 53 45 72 72 20 28 2a | 54 72 61 63 6b 54 72 61 |OSErr (*|TrackTra|
|00005f80| 6e 73 66 65 72 50 72 6f | 63 29 28 54 72 61 63 6b |nsferPro|c)(Track|
|00005f90| 20 74 2c 20 6c 6f 6e 67 | 20 72 65 66 43 6f 6e 29 | t, long| refCon)|
|00005fa0| 3b 0d 45 72 72 6f 72 73 | 3a 0d 69 6e 76 61 6c 69 |;.Errors|:.invali|
|00005fb0| 64 54 72 61 63 6b 20 09 | 2d 32 30 30 39 09 59 6f |dTrack .|-2009.Yo|
|00005fc0| 75 72 20 74 72 61 63 6b | 20 72 65 66 65 72 65 6e |ur track| referen|
|00005fd0| 63 65 20 69 73 20 62 61 | 64 2e 0d 74 79 70 65 64 |ce is ba|d..typed|
|00005fe0| 65 66 20 73 74 72 75 63 | 74 20 7b 0d 09 47 57 6f |ef struc|t {..GWo|
|00005ff0| 72 6c 64 50 74 72 09 67 | 77 3b 0d 09 47 57 6f 72 |rldPtr.g|w;..GWor|
|00006000| 6c 64 50 74 72 09 65 66 | 78 54 72 61 63 6b 3b 0d |ldPtr.ef|xTrack;.|
|00006010| 09 47 57 6f 72 6c 64 50 | 74 72 09 74 77 65 65 6e |.GWorldP|tr.tween|
|00006020| 3b 0d 09 73 68 6f 72 74 | 09 09 74 72 61 63 6b 53 |;..short|..trackS|
|00006030| 74 61 74 3b 0d 09 52 65 | 63 74 09 09 64 73 74 3b |tat;..Re|ct..dst;|
|00006040| 0d 09 57 69 6e 64 6f 77 | 50 74 72 09 77 70 3b 0d |..Window|Ptr.wp;.|
|00006050| 7d 20 6d 53 70 66 78 3b | 0d 74 79 70 65 64 65 66 |} mSpfx;|.typedef|
|00006060| 20 73 74 72 75 63 74 20 | 7b 0d 09 4d 6f 76 69 65 | struct |{..Movie|
|00006070| 09 09 09 09 6d 76 3b 0d | 09 4d 6f 76 69 65 43 6f |....mv;.|.MovieCo|
|00006080| 6e 74 72 6f 6c 6c 65 72 | 09 09 6d 63 74 6c 3b 0d |ntroller|..mctl;.|
|00006090| 09 52 65 63 74 09 09 09 | 09 6d 72 65 63 74 3b 0d |.Rect...|.mrect;.|
|000060a0| 09 6d 53 70 66 78 09 09 | 09 09 2a 6d 65 66 78 3b |.mSpfx..|..*mefx;|
|000060b0| 0d 09 47 57 6f 72 6c 64 | 50 74 72 09 09 09 62 61 |..GWorld|Ptr...ba|
|000060c0| 63 6b 50 69 63 74 3b 0d | 7d 20 6d 76 49 6e 66 6f |ckPict;.|} mvInfo|
|000060d0| 2c 20 2a 6d 76 50 74 72 | 3b 0d 2f 2a 20 74 68 65 |, *mvPtr|;./* the|
|000060e0| 73 65 20 61 72 65 20 74 | 68 65 20 74 72 61 63 6b |se are t|he track|
|000060f0| 20 74 72 61 6e 73 66 65 | 72 20 70 72 6f 63 65 64 | transfe|r proced|
|00006100| 75 72 65 73 2c 20 61 6c | 6c 20 74 68 65 79 20 64 |ures, al|l they d|
|00006110| 6f 20 69 73 20 73 65 74 | 20 61 20 66 6c 61 67 20 |o is set| a flag |
|00006120| 74 6f 20 2a 2f 0d 2f 2a | 20 69 6e 64 69 63 61 74 |to */./*| indicat|
|00006130| 65 20 74 6f 20 74 68 65 | 20 64 72 61 77 69 6e 67 |e to the| drawing|
|00006140| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 70 72 6f 63 | complet|ion proc|
|00006150| 20 74 68 61 74 20 62 6f | 74 68 20 74 72 61 63 6b | that bo|th track|
|00006160| 73 20 61 72 65 20 72 65 | 61 64 79 20 2a 2f 0d 70 |s are re|ady */.p|
|00006170| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 46 72 6f 6e |ascal OS|Err Fron|
|00006180| 74 54 72 61 63 6b 54 72 | 61 6e 73 66 65 72 50 72 |tTrackTr|ansferPr|
|00006190| 6f 63 28 54 72 61 63 6b | 20 74 2c 20 6d 53 70 66 |oc(Track| t, mSpf|
|000061a0| 78 20 2a 6d 66 78 29 0d | 7b 0d 09 6d 66 78 2d 3e |x *mfx).|{..mfx->|
|000061b0| 74 72 61 63 6b 53 74 61 | 74 20 7c 3d 20 31 3b 09 |trackSta|t |= 1;.|
|000061c0| 09 2f 2f 20 66 69 72 73 | 74 20 62 69 74 20 66 6f |.// firs|t bit fo|
|000061d0| 72 20 74 68 65 20 66 72 | 6f 6e 74 2c 20 6f 72 20 |r the fr|ont, or |
|000061e0| 6d 61 69 6e 20 74 72 61 | 63 6b 0d 09 72 65 74 75 |main tra|ck..retu|
|000061f0| 72 6e 20 6e 6f 45 72 72 | 3b 0d 7d 0d 70 61 73 63 |rn noErr|;.}.pasc|
|00006200| 61 6c 20 4f 53 45 72 72 | 20 45 66 78 54 72 61 63 |al OSErr| EfxTrac|
|00006210| 6b 54 72 61 6e 73 66 65 | 72 50 72 6f 63 28 54 72 |kTransfe|rProc(Tr|
|00006220| 61 63 6b 20 74 2c 20 6d | 53 70 66 78 20 2a 6d 66 |ack t, m|Spfx *mf|
|00006230| 78 29 0d 7b 0d 09 6d 66 | 78 2d 3e 74 72 61 63 6b |x).{..mf|x->track|
|00006240| 53 74 61 74 20 7c 3d 20 | 32 3b 09 09 2f 2f 20 73 |Stat |= |2;..// s|
|00006250| 65 63 6f 6e 64 20 62 69 | 74 20 66 6f 72 20 74 68 |econd bi|t for th|
|00006260| 65 20 73 70 65 63 69 61 | 6c 20 65 66 66 65 63 74 |e specia|l effect|
|00006270| 73 20 74 72 61 63 6b 0d | 09 72 65 74 75 72 6e 20 |s track.|.return |
|00006280| 6e 6f 45 72 72 3b 0d 7d | 0d 70 61 73 63 61 6c 20 |noErr;.}|.pascal |
|00006290| 4f 53 45 72 72 20 4d 6f | 76 69 65 44 72 61 77 69 |OSErr Mo|vieDrawi|
|000062a0| 6e 67 50 72 6f 63 28 4d | 6f 76 69 65 20 6d 2c 20 |ngProc(M|ovie m, |
|000062b0| 6d 76 50 74 72 20 6d 76 | 70 29 20 7b 7d 0d 76 6f |mvPtr mv|p) {}.vo|
|000062c0| 69 64 20 53 65 74 55 70 | 4d 6f 76 69 65 45 66 66 |id SetUp|MovieEff|
|000062d0| 65 63 74 28 4d 6f 76 69 | 65 20 6d 2c 20 57 69 6e |ect(Movi|e m, Win|
|000062e0| 64 6f 77 50 74 72 20 77 | 70 29 0d 7b 0d 09 54 72 |dowPtr w|p).{..Tr|
|000062f0| 61 63 6b 09 74 3b 0d 09 | 6d 53 70 66 78 09 2a 6d |ack.t;..|mSpfx.*m|
|00006300| 66 78 3b 0d 09 4f 53 45 | 72 72 09 65 72 72 3b 0d |fx;..OSE|rr.err;.|
|00006310| 09 52 65 63 74 09 62 6f | 75 6e 64 73 3b 0d 09 6d |.Rect.bo|unds;..m|
|00006320| 76 50 74 72 09 6d 76 69 | 3b 0d 09 6c 6f 6e 67 09 |vPtr.mvi|;..long.|
|00006330| 6e 75 6d 54 72 61 63 6b | 73 3b 0d 09 2f 2a 20 73 |numTrack|s;../* s|
|00006340| 65 74 20 75 70 20 74 68 | 65 20 74 72 61 6e 73 66 |et up th|e transf|
|00006350| 65 72 20 70 72 6f 63 65 | 64 75 72 65 73 20 66 6f |er proce|dures fo|
|00006360| 72 20 65 61 63 68 20 74 | 72 61 63 6b 20 2a 2f 0d |r each t|rack */.|
|00006370| 09 2f 2a 20 74 72 61 63 | 6b 20 31 20 69 73 20 74 |./* trac|k 1 is t|
|00006380| 68 65 20 6d 61 69 6e 20 | 6d 6f 76 69 65 20 74 72 |he main |movie tr|
|00006390| 61 63 6b 20 2a 2f 0d 09 | 2f 2a 20 74 72 61 63 6b |ack */..|/* track|
|000063a0| 20 32 20 69 73 20 74 68 | 65 20 73 70 65 63 69 61 | 2 is th|e specia|
|000063b0| 6c 20 65 66 66 65 63 74 | 73 20 74 72 61 63 6b 20 |l effect|s track |
|000063c0| 2a 2f 0d 09 74 20 3d 20 | 47 65 74 4d 6f 76 69 65 |*/..t = |GetMovie|
|000063d0| 49 6e 64 54 72 61 63 6b | 28 6d 2c 31 29 3b 0d 09 |IndTrack|(m,1);..|
|000063e0| 53 65 74 54 72 61 63 6b | 47 57 6f 72 6c 64 28 74 |SetTrack|GWorld(t|
|000063f0| 2c 20 6d 66 78 2d 3e 67 | 77 2c 20 6e 69 6c 2c 20 |, mfx->g|w, nil, |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.